Set postfix in ISPCONFIG to send email just with valid email account

Discussion in 'Installation/Configuration' started by rubenzsolt, Sep 30, 2017.

  1. rubenzsolt

    rubenzsolt New Member

    Hello, Please can help, how can I set postfix to send email just with valid email account, and if the email adress not have a email account to send a error message.
    Thanks in advance.
     
  2. Jesse Norell

    Jesse Norell Well-Known Member

    Try adding this to /etc/postfix/main.cf:
    Code:
    smtpd_reject_unlisted_recipient = yes
    smtpd_reject_unlisted_sender = yes
    
    Also you might try the 'Reject sender and login mismatch' setting in Server > Server Config > {server} > Mail (see http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch and note ISPConfig actually uses reject_unauthenticated_sender_login_mismatch, just below that).
     

Share This Page