1 (edited by tonyd 2013-05-08 20:26:04)

Topic: Not Relaying to SmartHost [SOLVED]

==== 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:
====

Hi,

I have enabled relaying for a domain in the iRedAdmin Panel.  I have verified that it is set in the mailbox domains table.  It is enabled.  I have restarted postfix.  It was working, now, it's not.  I don't believe I've broken the config.  Yet, the mail does not relay through my defined transport.  Anyone have an idea of why this would happen?

Thank you smile


Second to last log entry showing relay.  Should resemble the next example from a previous log the day before.

May  7 16:31:13 mail3 postfix/smtpd[30587]: connect from localhost[127.0.0.1]
May  7 16:31:13 mail3 postfix/smtpd[30587]: 432341006FC: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=tony@netald.com
May  7 16:31:13 mail3 postfix/cleanup[30593]: 432341006FC: message-id=<51d40c5ae9c93ce392334c0e58e005b7@netald.com>
May  7 16:31:14 mail3 postfix/qmgr[26553]: 432341006FC: from=<tony@netald.com>, size=20985, nrcpt=1 (queue active)
May  7 16:31:14 mail3 roundcube: User tony@netald.com [x.x.x.x]; Message for tonyd@gmail.com; 250: 2.0.0 Ok: queued as 432341006FC
May  7 16:31:14 mail3 postfix/smtpd[30587]: disconnect from localhost[127.0.0.1]
May  7 16:31:14 mail3 postfix/smtpd[30611]: connect from localhost[127.0.0.1]
May  7 16:31:14 mail3 postfix/smtpd[30611]: C8BC31008CD: client=localhost[127.0.0.1]
May  7 16:31:14 mail3 postfix/cleanup[30593]: C8BC31008CD: message-id=<51d40c5ae9c93ce392334c0e58e005b7@netald.com>
May  7 16:31:14 mail3 postfix/qmgr[26553]: C8BC31008CD: from=<tony@netald.com>, size=22081, nrcpt=1 (queue active)
May  7 16:31:14 mail3 postfix/smtpd[30611]: disconnect from localhost[127.0.0.1]
May  7 16:31:14 mail3 amavis[30574]: (30574-01) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <tony@netald.com> -> <tonyd@gmail.com>, Message-ID: <51d40c5ae9c93ce392334c0e58e005b7@netald.com>, mail_id: odHHG1y+ggZE, Hits: -9.986, size: 20985, queued_as: C8BC31008CD, 510 ms
May  7 16:31:14 mail3 postfix/smtp[30598]: 432341006FC: to=<tonyd@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.6, delays=1.1/0/0/0.51, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C8BC31008CD)
May  7 16:31:14 mail3 postfix/qmgr[26553]: 432341006FC: removed
May  7 16:31:17 mail3 postfix/smtp[30498]: C8BC31008CD: to=<tonyd@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.25.26]:25, delay=2.6, delays=0.01/0/0.15/2.4, dsn=2.0.0, status=sent (250 2.0.0 OK 1367969477 ql7si19664818pbc.26 - gsmtp)
May  7 16:31:17 mail3 postfix/qmgr[26553]: C8BC31008CD: removed

Correct Transport

May  7 13:57:58 mail3 postfix/smtp[27962]: 396A7100AFD: to=<tony@netald.com>, relay=mailgw.mydomain.net[x.x.x.x]:25, delay=0.02, delays=0/0/0/0.01, dsn=2.0.0, status=sent (250 OK)

MySQL Table mailbox/domains
netald.com    NetALD - Tony's Domain        0    0    0    0    smtp:mailgw.mydomain.net:25    0    1024            0    0    2013-04-13 23:40:30    2013-05-07 23:37:02    9999-12-31 00:00:00    1

----

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

2

Re: Not Relaying to SmartHost [SOLVED]

Per-domain relay setting in iRedAdmin-Pro means Postfix will relay RECEIVED emails for this domain to the specified transport (smtp:mailgw.mydomain.net:25 in your case), not emails SENT OUT.

3 (edited by tonyd 2013-05-08 20:25:48)

Re: Not Relaying to SmartHost [SOLVED]

Hi Zhang,

That may explain the "Too Many Hops" messages in my log.  I did not understand that this was for incoming; it does not specify.  I've modified the postfix/main.cf and enabled the relay.

Thank you,