sender from xyz@domain.com

Discussion in 'Installation/Configuration' started by acumen, Dec 16, 2009.

  1. acumen

    acumen New Member

    I received some spams per day from xyz or someone random @mydomain.com! e.g. I got a valid user michael@abc.com but this account will receive email from william@abc.com but which william is not a valid account in ispconfig.

    I also tried to telnet mail.abc.com. Whatever I entered "mail from: asndjasd@abc.com" if the recipient is the valid one, postfix will pass it.

    I know that it's really hard to check the sender mail address valid, but is there any solution to restrict the sender if it's the same domain as in database?

    in main.cf, add something in smtpd_sender_restrictions or smtpd_recipient_restrictions ?

    Before use ispconfig, my main.cf is,

    Code:
    smtpd_recipient_restrictions =
            permit_mynetworks,
            permit_sasl_authenticated,
            reject_non_fqdn_hostname,
            reject_non_fqdn_sender,
            reject_non_fqdn_recipient,
            reject_unauth_destination,
            reject_unauth_pipelining,
            reject_invalid_hostname,
            check_policy_service inet:127.0.0.1:10030
     

Share This Page