problem with mailforwards

Discussion in 'General' started by nhybgtvfr, Sep 22, 2017.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    Hi,

    we're using a multi-server setup (3.1.3) with a dedicated email server, on aws. rDNS for the mailserver is correctly configured by amazon.
    mailforwards have been working fine, up till this week, when any mailforwards to btinternet have started being rejected.

    we are gettings mails from eg [email protected] to [email protected], which are to be forwarded to [email protected]

    which now results in the following in our postfix logs:

    Sep 22 09:43:10 smtp postfix/smtp[2397]: 58FB1460C1: to=<[email protected]>, orig_to=<sales@c********s.co.uk>, relay=mx.bt.lon5.cpcloud.co.uk[65.20.0.49]:25, delay=235673, delays=235672/0.01/0.45/0.5, dsn=4.0.0, status=deferred (host mx.bt.lon5.cpcloud.co.uk[65.20.0.49] said: 421 Too many messages (1.5.7.3) on 2017/09/22 09:43:10 BST from un-validated IP address: 54.68.150.78. Please add a SPF record for the domain pepperrabbitmusic.com to your DNS or ask your Broadband Provider / Domain Registrar to do this, we will be unable to deliver email until this is done due to the volume of email being sent from this IP address. Guide for bulk senders www.bt.com/bulksender (in reply to MAIL FROM command))

    where in this case peterrabbitmusic.com is sending mail to sales@alocaldomain. on our server to be forwarded to ***@btinternet.com
    the spf record for the localdomain. is 'v=spf1 +a +mx +ip4:<ip address> -all'
    and the mx records are localdomain. MX 10 smtp.scl.co.uk. and localdomain. MX 50 mail.scl.co.uk.

    the master.cf file has:
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    where both myhostname and mail_name resolve to smtp.scl.co.uk
    and in the dns for scl.co.uk , mail.scl.co.uk is a cname to smtp.scl.co.uk


    is this just btinternet playing silly buggers? do I need to install/configure SRS, is there anything that can be done within the ispconfig control panel?
    https://serverfault.com/questions/82234/srs-sender-rewriting-when-forwarding-mail-through-postfix
    thanks
    lee.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You probably have to install and configure postsrs then. PostSRS works fine on ISPConfig setups, but you can't install and configure it from within ISPConfig.
     
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    ok, was afraid of that. i'm wary of making these changes to a live server though.
    can you confirm that all I need to do is the instructions below, or do I need to change anything else for it to work on isconfig?

    sudo apt-get install postsrsd

    # Add postfix configuration parameters for postsrsd:
    sudo postconf -e "sender_canonical_maps = tcp:127.0.0.1:10001"
    sudo postconf -e "sender_canonical_classes = envelope_sender"
    sudo postconf -e "recipient_canonical_maps = tcp:127.0.0.1:10002"
    sudo postconf -e "recipient_canonical_classes = envelope_recipient"

    # Add SRS daemon to startup (Red Hat 6/CentOS):
    sudo chkconfig postsrsd on
    # Add SRS daemon to startup (Debian/Ubuntu):
    sudo sysv-rc-conf postsrsd on
    # Start SRS daemon:
    sudo service postsrsd restart
    #Reload postfix:
    sudo service postfix reload
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I don't use postsrs on my servers, so I can't confirm the steps. But maybe someone else here in the forum is able to help you.
     
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

Share This Page