* Manu <traqu...@club-internet.fr>:
> Hello
> 
> I would like to accept mail from only one domain "smtp.domaineok.com"
> 
> This is my main.cf
> 
> smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/helo_access,
> reject_invalid_hostname,
> reject_unknown_hostname,
> reject_non_fqdn_hostname,
> 
> smtpd_recipient_restrictions =
>   permit_mynetworks,
>   check_client_access hash:/etc/postfix/helo_access,
>   permit_sasl_authenticated,
>   reject_unauth_destination,
>   reject_non_fqdn_recipient,
>   reject_unknown_recipient_domain,
>   reject_non_fqdn_helo_hostname,
>   reject_invalid_helo_hostname
>   reject_unlisted_recipient,
>   reject_rbl_client zen.spamhaus.org,
>   reject_rbl_client bl.spamcop.net
> 
> 
> and my :/etc/postfix/helo_access is
> 
> smtp.domaineok.com OK
> * REJECT

The key "*" is not defined (man 5 access)
Are you sure using the HELO is a smart idea?

Better:

smtpd_recipient_restrictions =
   check_client_access hash:/etc/postfix/smtp.domaineok.com
   reject

/etc/postfix/smtp.domaineok.com contains:
smtp.domaineok.com   OK

-- 
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