Loading ...
Sorry, an error occurred while loading the content.

Re: Sending all email destined for root to external email address

Expand Messages
  • Steven Peterson
    Thanks for everyone s help. The reason this was not working for me was that I did not have the domain of the external email address in mydestinations. I guess
    Message 1 of 5 , Oct 4, 2006
    View Source
    • 0 Attachment
      Thanks for everyone's help.  The reason this was not working for me was that I did not have the domain of the external email address in mydestinations.

      I guess I misunderstood what the /etc/aliases file was for.  For anyone that does not already know what I just learned, apparently the /etc/aliases file is generally for local delivery and less for general-purpose aliasing (e.g. forwarding email outside of the server.)  To do what I want to be able to do, it seems more flexible to use the virtual alias capabilities.

      - Steve Peterson


      Steven Peterson:
      > Oct 2 17:00:45 mail2 postfix/pickup[6372]: 30A8540041: uid=0 from=<root>
      > Oct 2 17:00:45 mail2 postfix/cleanup[6373]: 30A8540041:
      > message-id=<20061002210045.30A8540041mail2.myfakedomain.net>
      > Oct 2 17:00:45 mail2 postfix/qmgr[3727]: 30A8540041:
      > from=<rootmail2.myfakedomain.net>, size=301, nrcpt=1 (queue active)
      > Oct 2 17:00:45 mail2 postfix/local[6375]: 30A8540041:
      > to=<rootmail2.myfakedomain.net>, orig_to=<root>, relay=local, delay=0,
      > status=sent (delivered to mailbox)
      > Oct 2 17:00:45 mail2 postfix/qmgr[3727]: 30A8540041: removed

      The alias has no effect for one of the following reasons:

      - mail2.myfakedomain.net is not listed in main.cf:mydestination.

        You have:
          mydestination = $myhostname, localhost.$mydomain, localhost

        This is a good time to examine the output from:

              postconf myhostname

      - You edited the wrong aliases file.

        This is a good time to examine the output from:

              postconf alias_maps

        If it doesn't list /etc/aliases, then that's a problem.

      - You forgot to index the aliases file.

        This is a good time to examine the output from:

              grep warning: /var/log/maillog

         or whatever the name of the mail logfile.

      Good luck.

              Wietse

    Your message has been successfully submitted and would be delivered to recipients shortly.