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: mar...@example.com
250 2.1.0 Ok
rcpt to: mar...@gmail.com
554 5.7.1 <mar...@example.com>: 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

Reply via email to