This is quite maddening. No matter how many tutorials I read, I can't get it to work.
I currently have postfix installed on my server. It works: I can receive e-mail just fine (I subscribed here with that server). But, SASL is completely blocked. On the bright side, my server is not an open relay. But I can't get it to send e-mail for me. I can connect, but I cannot authenticate.
Of course, I am root on my server. Additionally, I am the sole user of my mail server (only one account, on my personal domain).
My question is, could anyone point me to a simple, step by step explanation for how to add a username / password to SASL authentication with postfix? If possible, I'd like to avoid complications such as the saslauthd daemon, dovecot, or whatever. If Postfix can do it alone, I'd rather have it do it alone.
In case I made any obvious mistake, here is my /etc/postfix/main.cf (for instance, I think the "smtp_sasl_password_maps" parameter is probably useless, as my server doesn't authenticate to anyone.)
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
delay_warning_time = 4h
unknown_local_recipient_reject_code = 450
maxima_queue_lifetime = 7d
minimal_backoff_time = 1000s
maximal_backoff_time = 8000s
smtp_helo_timeout = 60s
smtpd_recipient_limit = 32
smtpd_soft_error_limit = 3
smtpt_hard_error_limit = 12
smtpd_recipient_restrictions = permit_sasl_authenticated,
reject_unauth_pipelining,
permit_mynetworks,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
permit
smtpd_helo_required = yes
smtpd_delay_reject = yes
disable_vrfy_command = yes
readme_directory = no
#SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd.db
# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/smtp.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
mydomain = loup-vaillant.fr
myhostname = smtp.$mydomain
myorigin = $mydomain
mydestination = localhost.$mydomain www.$mydomain imap.$mydomain smtp.$mydomain localhost $mydomain
mynetworks_style = host
relay_domains =
relay_host =
notyfy_classes = resource, software, bounce
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = Maildir/
Thanks.
Bookmarks