Hello, after my unanswered email some days ago I tried to read the manual and I did some experiments, but I still cannot find a solution.
Summary: I have both a 2nd level domain and a 3rd level domain, where the 3rd level corresponds to my home network but has no emails associated with it. All my email addresses are associated to the 2nd level. My goal is: - from command line to fully specified email addresses: send normally - from command line to local users, without any domain: send to "u...@marzocchi.net" - from command line to root user: send to "ca...@marzocchi.net" (so that I can read error notifications when not at home) - sender domain should appear to be the 3rd level domain. /etc/postfix/main.cf: mydomain = 3rd.marzocchi.net myorigin = $mydomain alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases relayhost = … /etc/postfix/aliases: root: ca...@marzocchi.net then I run: /usr/local/sbin/postalias hash:/etc/postfix/aliases Sending to fully specified email addresses works. However, sending to local users without specifying any domain, doesn’t: $ mailx -s “test” root /var/log/maillog: --- postfix/pickup[12283]: [ID 197553 mail.info] D909913F09: uid=501 from=<olaf> postfix/cleanup[12288]: [ID 197553 mail.info] D909913F09: message-id=<20140209000822.d909913...@myserver.3rd.marzocchi.net> postfix/qmgr[12284]: [ID 197553 mail.info] D909913F09: from=<o...@3rd.marzocchi.net>, size=349, nrcpt=1 (queue active) postfix/smtp[12290]: [ID 197553 mail.info] D909913F09: to=<r...@3rd.marzocchi.net>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:11125, delay=0.61, delays=0.01/0.01/0.47/0.11, dsn=2.0.0, status=sent (250 ok 1391904571 qp 28531) postfix/qmgr[12284]: [ID 197553 mail.info] D909913F09: removed --- And the email is lost. This shows that, somehow, the address is not rewritten as I specified in aliases. Also, the same happens if I send to a local user. Basically, if the email address is not fully specified, the only thing that happens is that my (3rd level) domain gets appended and nothing more. I surely made a mistake, but which one? Or maybe I am approaching the problem from the wrong point of view and there is a simpler way? Can anyone help me? Thanks Olaf