Hi Maurice, I do something similar, but with the root alias straight to my external adress. In the receiving mail i get proper from headers from the cron jobs and such: From: Charlie Root <[email protected]>
Maybe you could try a double alias: local delivery (if you need it) and directly to the external address, to avoid the forward coming from "maurice". Something like: root: [email protected], maurice Regards, Erwin ----- Original Message ----- From: "Maurice Janssen" <[email protected]> To: "Martin Kropfinger" <[email protected]> Cc: [email protected] Sent: Zondag 12 januari 2014 22:31:57 Subject: Re: no domain in from and to headers On 01/12/14 22:17, Martin Kropfinger wrote: > Am 2014-01-12 21:59, schrieb Maurice Janssen: >> Hi, >> >> I have opensmtpd running on a few machine (running openbsd 5.3-stable >> and >> 5.4-stable) and I'm very happy with it. There are a few differences >> with sendmail that I am trying to work around. One thing that is >> bugging me >> is the following. >> >> For mail from the local system (like output from cron jobs or the >> warning >> from sudo when you are not in the sudoers file), sendmail apparantly >> fills >> in the hostname for the domain part in the From and To header. >> >> OpenSMTPD doesn't touch these headers, so the From header can be >> something like >> From: maurice >> >> My email is forwarded to a sendmail server which doesn't accept this >> email: >> [email protected]: 550 5.7.1 No domain in From: header, message >> rejected >> >> Is there a way to tell OpenSMTPD to fill in the domain like sendmail >> does? >> >> Thanks, >> Maurice > > How do you relay the mail to the sendmail-server? I have the external email address in /home/maurice/.forward and /etc/mail/aliases contains: root: maurice The smtpd.conf is not changed from the default. Thanks, Maurice -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
