> /^localhost$/                     550 Don't use my own domain (localhost)!
> /^iamghost.\com$/                 550 Don't use my own domain!
> /^64\.95\.64\.198$/             550 Your spam was rejected because you're 
> forging my IP.
> /^\[64\.95\.64\.198\]$/         550 Your spam was rejected because you're 
> forging my IP.
> /^mail\.iamghost.\com$/           550 Don't use my own hostname!
> /^[0-9.-]+$/                        550 Your software is not RFC 2821
> compliant: EHLO/HELO must be a domain or an address-literal (IP enclosed in 
> []) - not a naked IP.
> 
> Beyond this file, does my main.cf file look correct to you?

Looks OK.


I would merge:

smtpd_helo_restrictions = permit_mynetworks,
permit_sasl_authenticated,    reject_non_fqdn_helo_hostname,
reject_invalid_helo_hostname

smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,   reject_unauth_pipelining,
reject_non_fqdn_recipient,   reject_unknown_recipient_domain,
reject_unauth_destination,   reject_unlisted_recipient,
check_policy_service unix:postgrey/socket,   check_sender_access
 hash:/etc/postfix/sender_access,
 check_helo_access       pcre:/etc/postfix/helo_checks.pcre,
 reject_rbl_client zen.spamhaus.org,   reject_rbl_client bl.spamcop.net
 
into:

smtpd_helo_restrictions =
smtpd_recipient_restrictions =
   permit_mynetworks,
   permit_sasl_authenticated,
   reject_unauth_destination,
   reject_non_fqdn_recipient,
   reject_unknown_recipient_domain,
   reject_non_fqdn_helo_hostname,
   reject_invalid_helo_hostname
   check_policy_service unix:postgrey/socket,
   reject_unlisted_recipient,
   check_sender_access hash:/etc/postfix/sender_access,
   check_helo_access pcre:/etc/postfix/helo_checks.pcre,
   reject_rbl_client zen.spamhaus.org,   
   reject_rbl_client bl.spamcop.net

smtpd_data_restrictions =
   reject_unauth_pipelining,

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to