Correctly forwarding system messages to a valid account

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
mattcen
Posts: 17
Joined: Sat Sep 13, 2014 1:08 am

Correctly forwarding system messages to a valid account

Postby mattcen » Tue Jun 15, 2010 2:01 am

Hi all,
One of the servers we manage is not receiving system emails (i.e. emails sent from cron and the like to the 'root' account). If I manually send an email using "echo 'Hello World' | mail -s test root", I get the following entries in /var/log/mail.log:
[quote]

Jun 15 14:55:01 sbls postfix/pickup[28498]: 7E593562156: uid=0 from=

Jun 15 14:55:01 sbls postfix/cleanup[23079]: 7E593562156: message-id=

Jun 15 14:55:01 mail postfix/pickup[28498]: 7E593562156: uid=0 from=

Jun 15 14:55:01 sbls postfix/qmgr[14855]: 7E593562156: from=, size=556, nrcpt=1 (queue active)

Jun 15 14:55:01 mail postfix/cleanup[23079]: 7E593562156: message-id=

Jun 15 14:55:01 mail postfix/qmgr[14855]: 7E593562156: from=, size=556, nrcpt=1 (queue active)

Jun 15 14:55:02 sbls postfix/smtpd[23085]: connect from localhost.localdomain[127.0.0.1]Jun 15 14:55:02 mail postfix/smtpd[23085]: connect from localhost.localdomain[127.0.0.1]

Jun 15 14:55:02 sbls postfix/smtpd[23085]: 94596562150: client=localhost.localdomain[127.0.0.1]

Jun 15 14:55:02 mail postfix/smtpd[23085]: 94596562150: client=localhost.localdomain[127.0.0.1]Jun 15 14:55:02 sbls postfix/cleanup[23079]: 94596562150: message-id=

Jun 15 14:55:02 mail postfix/cleanup[23079]: 94596562150: message-id=Jun 15 14:55:02 sbls postfix/smtpd[23085]: disconnect from localhost.localdomain[127.0.0.1]

Jun 15 14:55:02 sbls postfix/qmgr[14855]: 94596562150: from=, size=1230, nrcpt=1 (queue active)Jun 15 14:55:02 mail postfix/smtpd[23085]: disconnect from localhost.localdomain[127.0.0.1]Jun 15 14:55:02 mail postfix/qmgr[14855]: 94596562150: from=, size=1230, nrcpt=1 (queue active)

Jun 15 14:55:02 sbls postfix/smtp[23082]: 7E593562156: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.37/0.01/0/0.96, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01040-16, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 94596562150)

Jun 15 14:55:02 mail postfix/smtp[23082]: 7E593562156: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.37/0.01/0/0.96, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01040-16, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 94596562150)Jun 15 14:55:02 sbls postfix/qmgr[14855]: 7E593562156: removed

Jun 15 14:55:02 mail postfix/qmgr[14855]: 7E593562156: removed

Jun 15 14:55:02 sbls postfix/smtp[23086]: 94596562150: to=, relay=none, delay=0.04, delays=0.03/0.01/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)

Jun 15 14:55:02 mail postfix/smtp[23086]: 94596562150: to=, relay=none, delay=0.04, delays=0.03/0.01/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)

Jun 15 14:55:02 sbls postfix/cleanup[23079]: AAFA3562159: message-id=Jun 15 14:55:02 mail postfix/cleanup[23079]: AAFA3562159: message-id=

Jun 15 14:55:02 sbls postfix/bounce[23087]: 94596562150: sender non-delivery notification: AAFA3562159

Jun 15 14:55:02 sbls postfix/qmgr[14855]: AAFA3562159: from=<>, size=3231, nrcpt=1 (queue active)Jun 15 14:55:02 mail postfix/bounce[23087]: 94596562150: sender non-delivery notification: AAFA3562159

Jun 15 14:55:02 mail postfix/qmgr[14855]: AAFA3562159: from=<>, size=3231, nrcpt=1 (queue active)

Jun 15 14:55:02 sbls postfix/qmgr[14855]: 94596562150: removed

Jun 15 14:55:02 mail postfix/qmgr[14855]: 94596562150: removedJun 15 14:55:02 sbls postfix/smtp[23086]: AAFA3562159: to=, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)Jun 15 14:55:02 mail postfix/smtp[23086]: AAFA3562159: to=, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)

Jun 15 14:55:02 sbls postfix/qmgr[14855]: AAFA3562159: removedJun 15 14:55:02 mail postfix/qmgr[14855]: AAFA3562159: removed

[/quote]
(Note: example.com has been substituted for the real domain)
As shown above, the email is bounced because the hostname "loops back to myself". I've tried creating an alias so that emails to "root" go to "admin@example.com" but cannot do this from the Admin web interface because it wants an "@hostname" portion with the email address, which will not match the messages the system is trying to send.
I think that the cause of the problem is that the mail server is resolving any email address such as "root" without an explicit hostname to "root@mail.example.com" instead of "root@example.com", and I note that in /opt/zimbra/postfix-2.6.5.2z/conf/main.cf the 'myhostname' entry is 'mail.example.com'. I suspect I need to change this, but am not sure (and don't want to break anything given this is a production system), and also saw elsewhere on the forum that main.cf is auto-generated and is therefore overwritten by... something.


Does anybody have any ideas for me?
Thanks in advance!
--

Regards,

Matthew Cengia


mattcen
Posts: 17
Joined: Sat Sep 13, 2014 1:08 am

Correctly forwarding system messages to a valid account

Postby mattcen » Mon Jun 21, 2010 6:42 pm

Bump.
--

Regards,

Matthew Cengia
phoenix
Ambassador
Ambassador
Posts: 26341
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Correctly forwarding system messages to a valid account

Postby phoenix » Tue Jun 22, 2010 12:29 am

Use sendmail or whatever your distribution uses.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Bill Dee
Posts: 2
Joined: Sat Sep 13, 2014 1:39 am

Correctly forwarding system messages to a valid account

Postby Bill Dee » Fri Oct 29, 2010 12:17 pm

Matthew.
Did you come up with a resolution for this? I am experiencing the same issue, and have had no luck searching through the forums.
phoenix
Ambassador
Ambassador
Posts: 26341
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Correctly forwarding system messages to a valid account

Postby phoenix » Fri Oct 29, 2010 12:30 pm

[quote user="Bill Dee"]Did you come up with a resolution for this? I am experiencing the same issue, and have had no luck searching through the forums.[/QUOTE]Read this whole thread: http://www.zimbra.com/forums/administrators/35469-solved-local-users-relaying-through-exim.html
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Bill Dee
Posts: 2
Joined: Sat Sep 13, 2014 1:39 am

Correctly forwarding system messages to a valid account

Postby Bill Dee » Fri Oct 29, 2010 1:51 pm

Still no luck after running the alternatives command, and setting it to use zimbra. I'm still getting status=bounced, mail looops back to myself.
mattcen
Posts: 17
Joined: Sat Sep 13, 2014 1:08 am

Correctly forwarding system messages to a valid account

Postby mattcen » Sat Oct 30, 2010 8:40 pm

Unfortunately, somebody else took over this problem from me, and did solve it, but I'm not sure exactly how. I think it had to do with either altering /etc/hosts, or changing the list of domains for which Zimbra will handle mail to include localhost.

Return to “Administrators”

Who is online

Users browsing this forum: MSN [Bot] and 13 guests