1

Topic: Rejected Outbound

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
I cannot send any email outside my network until I register the domain of the external mail server like gmail.com in my postfix main.cf relay_domain. Below are the errors:

From Roundcube Server:
[12-Sep-2013 14:32:21 +0300]: SMTP Error: SMTP error: Failed to add recipient 'mymailbj@gmail.go.tz' in /var/www/roundcubemail/program/include/rcmail.php on line 1035 (POST /mail/?_unlock=loading1378985541714&_lang=0?_task=mail&_action=send)

From Amavisd-new server:
Sep 12 16:59:49 mail amavis[11300]: (11300-02) dkim: signing (author), From: <demo@test.com> (From:<demo@test.com>), KEY.key_ind=>0, a=>rsa-sha256, c=>relaxed/simple, d=>test.com, s=>dkim, ttl=>864000, x=>1379858388.05829
Sep 12 16:59:49 mail amavis[11300]: (11300-02) smtp resp to RCPT (pip) (<mymailbj@gmail.com>): 554 5.7.1 <mymailbj@gmail.com>: Relay access denied
Sep 12 16:59:49 mail amavis[11300]: (11300-02) Negative SMTP resp. to DATA: 554 5.5.1 Error: no valid recipients
Sep 12 16:59:49 mail amavis[11300]: (11300-02) (!)FWD from <demo@test.com> -> <mymailbj@gmail.com>,BODY=7BIT 554 5.7.1 from MTA(smtp:[192.168.20.148]:10025): 554 5.7.1 <mymailbj@gmail.com>: Relay access denied
Sep 12 16:59:49 mail amavis[11300]: (11300-02) Blocked MTA-BLOCKED {RejectedOutbound}, MYNETS/MYUSERS LOCAL [192.168.20.152]:42531 [192.168.20.152] <demo@test.com> -> <mymailbj@gmail.com>, Queue-ID: C62E4130847, Message-ID: <196043114090672c363ad2804ac9c88d@test.com>, mail_id: eTlze0PKXs5D, Hits: -12.799, size: 1022, dkim_new=dkim:test.com, 1198 ms

From MTA/Postfix server:
Sep 12 16:53:27 mail01 postfix/smtpd[6517]: NOQUEUE: reject: RCPT from mail.test.com[192.168.20.155]: 554 5.7.1 <mymailbj@gmail.com>: Relay access denied; from=<demo@test.com> to=<mymailbj@gmail.com> proto=ESMTP helo=<localhost>
Sep 12 16:53:27 mail01 postfix/smtpd[6517]: disconnect from mail.test.com[192.168.20.155]
Sep 12 16:53:27 mail01 postfix/smtp[32158]: 0424A130847: to=<mymailbj@gmail.com>, relay=192.168.20.155[192.168.20.155]:10024, delay=1.2, delays=0.29/0.05/0.03/0.82, dsn=5.7.1, status=bounced (host 192.168.20.155[192.168.20.155] said: 554 5.7.1 id=18599-01 - Rejected by next-hop MTA on relaying, from MTA(smtp:[192.168.20.148]:10025): 554 5.7.1 <mymailbj@gmail.com>: Relay access denied (in reply to end of DATA command))


Any Idea of this will highly be appreciated.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Rejected Outbound

djbahati1 wrote:

Sep 12 16:53:27 mail01 postfix/smtp[32158]: 0424A130847: to=<mymailbj@gmail.com>, relay=192.168.20.155[192.168.20.155]:10024, delay=1.2, delays=0.29/0.05/0.03/0.82, dsn=5.7.1, status=bounced (host 192.168.20.155[192.168.20.155] said: 554 5.7.1 id=18599-01 - Rejected by next-hop MTA on relaying, from MTA(smtp:[192.168.20.148]:10025): 554 5.7.1 <mymailbj@gmail.com>: Relay access denied (in reply to end of DATA command))

Are Amavisd-new and Postfix running on different servers? Please add IP address of your Postfix server in Amavisd config file, parameter "@inet_acl". For example:

@inet_acl = qw(127.0.0.1 [::1]);  # allow SMTP access only from localhost IP
                                  # (default is qw(127.0.0.1 [::1]) )

# when MTA (one or more) is on a different host, use the following:
#@inet_acl = qw(127.0.0.0/8 [::1] 10.1.0.1 10.1.0.2);  # adjust list as needed
#$inet_socket_bind = undef;       # bind to all IP interfaces if undef

3

Re: Rejected Outbound

Yes, I use two different servers. I have tried @inet_acl = qw(192.168.20.148 [::1]); with no success.

4

Re: Rejected Outbound

djbahati1 wrote:

Yes, I use two different servers. I have tried @inet_acl = qw(192.168.20.148 [::1]); with no success.

Could you please post error message after updated @inet_acl? Any related log in both servers?