Spamsnake forward to multiple users

Discussion in 'HOWTO-Related Questions' started by getrav, May 13, 2008.

  1. getrav

    getrav New Member

    I would like to have a custom forwarding table to my internal email server.
    If I receive an email addressed to [email protected], I would like to have it delivered to [email protected] and [email protected]

    Is this possible in SpamSnake?


    Thanks.

    On further investigation I think it might have to do something with the alias file? I'm going to try and keep working on it but please correct me if I'm wrong.
     
    Last edited: May 13, 2008
  2. Rocky

    Rocky Member

    The alias file is used only for system users. You would have to implement aliases using the /etc/postfix/virtual or virtual_alias_maps. After editing your /etc/postfix/virtual file, make sure you postmap it.

    Also, make sure you have the following set in /etc/postfix/main.cf:
    virtual_alias_maps = hash:/etc/postfix/virtual

    Good Luck!
     
  3. getrav

    getrav New Member

    Check my example please

    I think the postfix part of the equation is working.
    Is the hostname spamsnake.foo.local. acceptable for production?

    Here is what I want to do please correct if necessary.
    This is my /etc/postfix/virtual
    I got a NDR report back as follows:
    Code:
    This is the mail system at host spamsnake.foo.local.
    
    I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to postmaster.
    
    If you do so, please include this problem report. You can delete your own text from the attached returned message.
    
                       The mail system
    
    <[email protected]> (expanded from <[email protected]>): host
        192.168.1.231[192.168.1.231] said: 550 5.7.1 Unable to relay (in reply to
        RCPT TO command)
    
    <[email protected]> (expanded from <[email protected]>): host
        192.168.1.231[192.168.1.231] said: 550 5.7.1 Unable to relay (in reply to
        RCPT TO command)
    
    So it seems like I'll have to edit my exchange settings as its preventing the relay.
    I'll post back if fixing exchange relay problem does the trick.
     
  4. Rocky

    Rocky Member

    Hey,

    The host name is fine. You will have to check your relay access on your exchange smtp server because it will prevent relaying if not allowed.

    Rocky.
     

Share This Page