HowTo change outgoing mail IP adress in ISPC3

Discussion in 'Installation/Configuration' started by andy1965, Mar 19, 2014.

  1. andy1965

    andy1965 New Member

    Changes in master.cf like


    smtp unix - - - - - smtp
    ......-o smtp_bind_address=192.168.1.1
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay
    unix - - - - - smtp
    ......-o smtp_bind_address=192.168.1.1
    ......-o smtp_fallback_relay=

    or

    http://www.faqforge.com/linux/send-all-outgoing-email-trough-one-ip-address-in-postfix/

    are not successful
    Error (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)

    Thanks

    (ISPC 3.0.5.3; CentOS 6.5 64bit )
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    This link might help you.

    Br//
    Srijan
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The solution from faqforge is the riht direction. Yu will just have to tell amavisd to accept email from IP 192.168.1.1 as well and not just from localhost.

    Try to add:

    @inet_acl = qw( 127.0.0.1 [::1] 192.168.1.1 );
    $inet_socket_bind = undef;

    in /etc/amavis/conf.d/50-user and restart amavis then.
     
  4. andy1965

    andy1965 New Member

    sorry,

    there is no /etc/amavis folder, only /etc/amavisd without conf.d folder

    if i create conf.d folder and the file 50-user under /etc/amavisd/conf.d
    or create the full path /etc/amavis/conf.d folder and the file,

    restart amavisd and postfix,

    both changes wasn´t successful.



    i got always the message
    (lost connection with 127.0.0.1[127.0.0.1] while receiving the initial server greeting)
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The folders I mentioned are for debian and ubuntu only. If you use a different distribution, then you might have to edit the amavisd.conf file directly.
     
  6. andy1965

    andy1965 New Member

    Yes, thanks

    i think i have to change

    $notify_method = 'smtp:[192.0.2.1]:20025';
    $forward_method = 'smtp:[192.0.2.1]:20025';
    (example)

    in amavisd.conf

    looks easy ;-)
     

Share This Page