Email Prblems

Discussion in 'ISPConfig 3 Priority Support' started by Gaston Girardi, Aug 3, 2020.

  1. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Hi, after what happened the other day with my emails, I decided to implement some security politics, but now my emails aren't reaching my server and the outgoing emails programs (outlook, mac mail, Mailbird, etc...), can't send emails, they are able connect but at the time to trying sending email they get an error.

    To give you a little bit of perspective what i try to implement for the first security measure is about the following tutorial.
    https://www.howtoforge.com/tutorial/blocking-of-international-spam-botnets-postfix-plugin/

    As i was having some issues with that tutorial and getting a lot of error, i finally reach the following link:
    https://github.com/Vnet-as/postfwd-anti-geoip-spam-plugin#postfwd-configuration

    and after some time i finally make it work, or at least is what think because i don't have any more errors from that plugin :D, but as i told you at the beginning my emails are not working, so checking the log i found this:

    MAil Warn
    Code:
    Jul 31 22:28:41 server1 postfix/smtpd[15480]: warning: /etc/postfix/main.cf, line 97: overriding earlier entry: smtpd_recipient_restrictions=permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, check_recipient_access mysql:/etc/postfix/mysql-virtual_policy_greylist.cf
    Jul 31 22:28:41 server1 postfix/smtps/smtpd[14885]: warning: hostname dsl-xxx-xxx-xxx-xxx-dyn.prod-infinitum.com.mx does not resolve to address xxx.xxx.xxx.xxx: Name or service not known
    Jul 31 22:28:42 server1 postfix/smtps/smtpd[14885]: warning: connect to 127.0.0.1:10040: Connection refused
    Jul 31 22:28:42 server1 postfix/smtps/smtpd[14885]: warning: problem talking to server 127.0.0.1:10040: Connection refused
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: warning: connect to 127.0.0.1:10040: Connection refused
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: warning: problem talking to server 127.0.0.1:10040: Connection refused
    
    In that line of the config file o got this:
    smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10040

    Mail Log
    Code:
    Jul 31 22:28:41 server1 postfix/smtps/smtpd[14885]: warning: hostname dsl-xxx-xxx-xxx-xxx-dyn.prod-infinitum.com.mx does not resolve to address xxx.xxx.xxx.xxx: Name or service not known
    Jul 31 22:28:41 server1 postfix/smtps/smtpd[14885]: connect from unknown[187.236.18.162]
    Jul 31 22:28:42 server1 postfix/smtps/smtpd[14885]: NOQUEUE: filter: RCPT from unknown[187.236.18.162]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[xxx.xxx.xxx.xxx]>
    Jul 31 22:28:42 server1 postfix/smtps/smtpd[14885]: warning: connect to 127.0.0.1:10040: Connection refused
    Jul 31 22:28:42 server1 postfix/smtps/smtpd[14885]: warning: problem talking to server 127.0.0.1:10040: Connection refused
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: warning: connect to 127.0.0.1:10040: Connection refused
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: warning: problem talking to server 127.0.0.1:10040: Connection refused
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: NOQUEUE: reject: RCPT from unknown[xxx.xxx.xxx.xxx]: 451 4.3.5 <[email protected]>: Recipient address rejected: Server configuration problem; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[xxx.xxx.xxx.xxx]>
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: lost connection after NOOP from unknown[xxx.xxx.xxx.xxx]
    Jul 31 22:28:43 server1 postfix/smtps/smtpd[14885]: disconnect from unknown[187.236.18.162] ehlo=1 auth=1 mail=1 rcpt=0/1 noop=1 commands=4/5
    
    And what I found on the same config file a couple of lines up, is this:
    content_filter = amavis:[127.0.0.1]:10024

    Correct me if im wrong but i thinkin my problems came from the port, because the "Postfwd anti GeoIP SPAM" plugin is set in a different port.
    My question is if it is that?, the only thing i got to do y change the port for the amavis, and that's all?
     
  2. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Forget it i've solved it, my problem was on the database connection as the first thing that i did it was follow the tutorial i left the database connections as it came there and i should have done it as the github tutorial.

    Sorry for the troubles :p
     

Share This Page