troubleshooting Question

SMTP AUTH using Postfix

Avatar of neur0maniak
neur0maniak asked on
14 Comments1 Solution1488 ViewsLast Modified:
I'm trying to get SMTP AUTH working in Postfix, but I'm not having any success.

here is my file:

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
sample_directory = /usr/share/doc/postfix/examples
readme_directory = /usr/share/doc/postfix
manpage_directory = /usr/share/man
setgid_group = postdrop

# appending .domain is the MUA's job.
append_dot_mydomain = no

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# Uncomment the next line to generate delayed mail warnings
delay_warning_time = 4h

myhostname =
mydomain =
#smtpd_sasl_local_domain =
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#broken_sasl_auth_clients = yes
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/sasl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/sasl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/sasl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
myorigin = /etc/mailname
mydestination =,,
relayhost =
mynetworks =,
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = Maildir/


I've commented out the lines that cause my SMTP server to freeze.

Without them, I get:
root@namelesswonder [19:45:53 Thu Mar 25]
/etc/postfix>telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 ESMTP Postfix (Debian/GNU)
Connection closed by foreign host.

With them, I get:
root@namelesswonder [19:45:53 Thu Mar 25]
/etc/postfix>telnet localhost 25
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


I am using Debian-3.0, and using the unstable sources for apt.

I installed sasl using apt-get install sasl2-bin


I'm offering the points to the person who can help me get SMTP AUTH working on this server.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros