On Wed, Jan 15, 2014 at 10:33:00PM +0100, Erwin van Maanen wrote: >Hi Maurice, > >I do something similar, but with the root alias straight to my external >adress. I tried three scenarios: - external address in /etc/mail/aliases - external address in /root/.forward (and no alias for root in /etc/mail/aliases) - external addres in /home/maurice/.forward (and maurice in /root/.forward).
I see no difference, unfortunately. >In the receiving mail i get proper from headers from the cron jobs and such: >From: Charlie Root <[email protected]> Is this for cronjobs that send their output through mail(1) ? In that case, I also see a full domain in the From: header. But for other cronjobs (like a simple "echo foo" as a test case) that don't pipe the output to mail(1), smtpd tries to send the mail with a From header without the domain part (only "From: root") and those emails are rejected by the SMTP at the receiving end (sendmail). >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 Thanks for the suggestion, but it doesn't work for me. Maurice -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
