[SOLVED] all email except notifications send fine

Moderator: crythias

Locked
sanroque
Znuny newbie
Posts: 3
Joined: 18 Sep 2010, 00:28
Znuny Version: 2.4.7

[SOLVED] all email except notifications send fine

Post by sanroque »

Admin Email, and customer email is being sent fine.

Notification email is being sent, but is malformed and being rejected by either smarthost relay, or by (at least) google's servers.

I set up local delivery so I could see what was being sent and noticed this difference in the header:

admin emails, and emails that work fine start like:

Code: Select all

From adminemail@company.net  Fri Sep 17 13:04:47 2010
Return-Path: <adminemail@company.net>
X-Original-To: agent@company.net
The emails that get rejected (notification emails) start like this:

Code: Select all

From MAILER-DAEMON  Fri Sep 17 13:04:18 2010
Return-Path: <>
X-Original-To: agent@company.net

Is this a config issue or a bug?

This seems very similar to this old thread:

http://www.mail-archive.com/otrs@otrs.org/msg26506.html

Hoping I can figure out how to solve/patch this issue.

Thanks,

-Preston
Last edited by sanroque on 18 Sep 2010, 07:31, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: all email except notifications send fine

Post by crythias »

Check this:
Config Options: Framework -> Core::Sendmail

SendmailNotificationEnvelopeFrom:
If set, this address is used as envelope from header in outgoing notifications. If no address is specified, the envelope from header is empty.
(Default: )

Check it and give it an email address. See if it fixes the problem.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
sanroque
Znuny newbie
Posts: 3
Joined: 18 Sep 2010, 00:28
Znuny Version: 2.4.7

[SOLVED]: all email except notifications send fine

Post by sanroque »

SendmailNotificationEnvelopeFrom did fix this. I think I had tried it but entered a value without ticking the checkbox and had not returned to the settings screen to see that it had not stuck (doh).

Perhaps this should default to the system address?

Thanks for the help. I tried tracking it through the source into kernel/mail/sendmail.pm - but being a python guy I was pretty lost in the code.

-Preston
Locked