Hi list!
I'm trying to install a postfix with some restrictions, including a
sender restriction, but I'm just missing something.
The idea is to allow only one domain to send mails from that server, but
I'm having access denied including the domain that is supposed to be
allowed.
Here is what I got:
main.cf:
smtpd_sender_restrictions=
check_client_access hash:/etc/postfix/access
reject
access:
example.com OK
And creating the database with:
# postmap hash:/etc/postfix/access
Here is the output of a telnet session:
$ telnet mail.example.com
Trying XXX.XXX.XXX.XX...
Connected to mail.example.com.
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
helo martin
250 mail.example.com
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
554 5.7.1 <[email protected]>: Sender address rejected: Access denied
quit
221 2.0.0 Bye
I've googling around, reading access manual and main.cf examples, but
can't figure out what's wrong with it.
Any idea is welcome ;)
Cheers
MartÃn