Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Alberto Lepe (devalepe.com)
Date: Mon Mar 16 2009 - 00:18:03 CDT
Hello, and thank you in advance for your time!
I have been setting up a mail server since more than a week and after
reading several posts/articles and some pages of the Postfix manual,
I'm a little confused about how to setup the security.
The mail server is outside my LAN and it will be used to serve some
domains, with maybe 10 users per domain.
This is my main.cf (restrictions):
smtpd_data_restrictions = reject_unauth_pipelining
I commented those lines after reading in this mailing list that was
not a good idea for a mail server that will receive/send mails from
I wanted to force the users to authenticate, in order to send mails, with:
#smtpd_client_restrictions = permit_sasl_authenticated,reject
But for some reason, when I use that line, and I send a mail from
gmail to one of the test accounts, it is bounced with an "Client host
rejected: Access denied" error.
I thought it was only for those wishing to use the SMTP server for
sending emails... but it is not... right?
So, what I don't understand about the restrictions is:
If I don't include the "smtpd_client_restrictions =
anyone can use my SMTP to send emails without authentication if it is
not rejected by other rules (e.g., reject_unlisted_sender, etc.)
Even with " smtpd_client_restrictions" rule, If I use that server as
SMTP server, I can send an email to a local account:
(testmyhostname.com) without authentication! (and outside
mynetworks). Why is that possible?