Hello Guys,
iI installed a new Mailserver using Dovecot, Postfix and a MySQL-Database for the Users and Domains and Mailboxes.
NowiI'm at the point to configure the secure SASL Authentication for SMTP.
I created a socket and told Postfix to use it but it wont work.
This is my main.cf
I used the normal main.cf configuration file and added the following to the bottom:
Here is my dovecot.conf
When i restart my Postfix theniI get the following:
TheniI checked my Mail-Log and send a testmail and iI got the following:
EDIT: I checked /usr/local/libexec/postfix/smtpd and in the folder Postfix there is a file named smtpd but when I open it I get cryptic letters.
For me it looks like that SASL is not installed, butiI checked the port cyus-SASL and rechecked the config of Postfix and both are installed.
Did someone know where the problem is?
Now
I created a socket and told Postfix to use it but it wont work.
This is my main.cf
I used the normal main.cf configuration file and added the following to the bottom:
Code:
virtual_alias_maps = mysql:/usr/local/etc/postfix/valias.cf
virtual_mailbox_base = /srv/mail
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/vmailbox.cf
virtual_uid_maps = mysql:/usr/local/etc/postfix/vuidmaps.cf
virtual_gid_maps = static:125
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/vdomains.cf
smtpd_tls_cert_file = /certificates/postfix/postfix_cert.pem
smtpd_tls_key_file = /certificates/postfix/postfix_key.pem
smtpd_tls_security_level = may
smtpd_tls_auth_only= yes
smtpd_sasl_auth_enable= yes
smtpd_sasl_auth_path=/srv/postfix/private/auth
smtpd_sasl_type=dovecot
Here is my dovecot.conf
Code:
## Dovecot configuration file
protocols = imap
auth_mechanisms = plain login
ssl_cert = </certificates/cert.pem
ssl_key = </certificates/key.pem
disable_plaintext_auth = yes
passdb {
driver = sql
args = /usr/local/etc/dovecot/dovecot-sql.conf
}
userdb {
driver = sql
args = /usr/local/etc/dovecot/dovecot-sql.conf
}
service auth {
unix_listener /srv/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
When i restart my Postfix then
Code:
root@mailsrv:/srv # service postfix restart
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
postfix/postfix-script: stopping the Postfix mail system
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
/usr/local/sbin/postconf: warning: /usr/local/etc/postfix/main.cf: unused parameter: smtpd_sasl_auth_path=/srv/postfix/private/auth
postfix/postfix-script: starting the Postfix mail system
Then
Code:
root@mailsrv:/srv/mail/******* # tail -F /var/log/maillog
Mar 27 22:39:26 mailsrv postfix/smtpd[1166]: warning: SASL: Connect to smtpd fai led: No such file or directory
Mar 27 22:39:26 mailsrv postfix/smtpd[1166]: fatal: no SASL authentication mecha nisms
Mar 27 22:39:27 mailsrv postfix/master[1112]: warning: process /usr/local/libexe c/postfix/smtpd pid 1166 exit status 1
Mar 27 22:39:27 mailsrv postfix/master[1112]: warning: /usr/local/libexec/postfi x/smtpd: bad command startup -- throttling
Mar 27 22:40:27 mailsrv postfix/smtpd[1184]: error: open database /etc/aliases.d b: No such file or directory
Mar 27 22:40:27 mailsrv postfix/smtpd[1184]: connect from dub004-omc3s31.hotmail .com[157.55.2.40]
Mar 27 22:40:28 mailsrv postfix/smtpd[1184]: warning: SASL: Connect to smtpd fai led: No such file or directory
Mar 27 22:40:28 mailsrv postfix/smtpd[1184]: fatal: no SASL authentication mecha nisms
Mar 27 22:40:29 mailsrv postfix/master[1112]: warning: process /usr/local/libexe c/postfix/smtpd pid 1184 exit status 1
Mar 27 22:40:29 mailsrv postfix/master[1112]: warning: /usr/local/libexec/postfi x/smtpd: bad command startup -- throttling
EDIT: I checked /usr/local/libexec/postfix/smtpd and in the folder Postfix there is a file named smtpd but when I open it I get cryptic letters.
For me it looks like that SASL is not installed, but
Did someone know where the problem is?
Last edited by a moderator: