postfix aliases doesn't work

Discussion in 'General' started by stazcek0, Jan 21, 2010.

  1. stazcek0

    Joined:
    Jan 21, 2010
    Messages:
    12
    Likes Received:
    0
    Hello,

    i download the Elastix Distro 1.6 Stable (32 bits) and install it. It is very simple and very complete !!! it's a great product.

    But after tuning it for my needs, i add a cron and realized that mail for root are sended to root@notthegooddomain.com.
    (for the example let's say that i set the host in network parameters to myelastix.notthegooddomain.com)

    I check the /etc/postfix/main.cf, and see elastix set these two lines :
    I edit /etc/aliases and add at the bottom of the file the following line :

    Code:
    root:		elastixmails@myotherdomain.tld
    i do a newaliases command, do a postfix reload and do the following test :

    Code:
    echo test | mail root; sleep 1; tail /var/log/maillog 
    and in the maillog file i found :

    Postfix send the mail to root@notthegooddomain.com rather than elastixmails@myotherdomain.tld (the destination i want). :(
    So why postfix doesn't use the aliases file ?????

    Is there something wrong in my procedure ? or another way to set this alias for root ?

    Thanks in advance
     
  2. stazcek0

    Joined:
    Jan 21, 2010
    Messages:
    12
    Likes Received:
    0
    found this solution :

    in the /etc/postfix/main.cf file, replace :

    Code:
    mydestination = example.com, $mydomain2 
    with

    Code:
    mydestination = $mydomain, $mydomain2 
     

Share This Page