At my wits end with crontab/postfix problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a small home network connected to the internet via a router/hub.
My internal domain is ever.maas and my external domain is home.nl.

I use postfix and have configured it to mail internally and externally
with /etc/postfix/main.cf, /etc/postfix/aliases, /etc/postfix/sender_canonical
and /etc/postfix/transport (this last to route internal and external mail
through local and smtp respectively).

I only use postfix to mail to the outside world and relay this through
my ISP's smtp mailserver. I use mutt to collect my mail.

If I mail internally as root everything works perfectly (inside the same pc
from 'root' to 'user' of from 'root' to 'root'! I don't need or want to
mail between pc's. The whole configuration is just to enable mail
generated by cron for example to go to 'user').

However if cron mails then 'user' doesn't get the mail but it is relayed to my
ISP's mail server!

Here are two examples.

1) I mail as root:
postfix/pickup[2610]: 26C3F875F: uid=0 from=<root>
postfix/cleanup[2627]: 26C3F875F: message-id=<20040512092700.GC2619@xxxxxxxxxxxx>
postfix/nqmgr[2611]: 26C3F875F: from=<root@xxxxxxxxxxxx>, size=405, nrcpt=1 (queue active)
postfix/local[2629]: 26C3F875F: to=<user@xxxxxxxxxxxx>, orig_to=<root@xxxxxxxxxxxx>, relay=local, delay=0, status=sent (mailbox)

2) Cron mails (as root):
postfix/pickup[2610]: 4256D875F: uid=0 from=<root>
postfix/cleanup[3449]: 4256D875F: message-id=<20040512102033.4256D875F@xxxxxxxxxxxx>
postfix/nqmgr[2611]: 4256D875F: from=<root@xxxxxxxxxxxx>, size=456, nrcpt=1 (queue active)
postfix/smtp[3450]: 4256D875F: to=<root@xxxxxxx>, orig_to=<root>, relay=mx.home.nl[213.51.128.66], delay=0, status=bounced (host mx.home.nl[213.51.128.66] said: 550 Sender verify failed (in reply to MAIL FROM command))

Why do I get the fork to 'smtp' with cron mail instead of the fork to 'local'.
And why 'orig_to=<root@xxxxxxxxxxxx>' versus 'orig_to=<root>'.

(It doesn't make any difference if I enter 'root', 'root@localhost' or
 'root@xxxxxxxxxxxx' after MAILTO= in /etc/crontab).

I really would appreciate hints to solve this. I am at my wits end.

Alexander



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux