So: progress of sorts.
As far as I can see, everything is working as it should, apart from this problem with authentication. I’ve verified the DNS records with dig, and there is no problem talking to the server. It just isn’t happy about authentication.
I should mention that to confuse matters I’ve rejigged my network. The mail server is now directly connected to my ISP through a simple modem. Everything else is routed through this machine instead of the earlier arrangement where everything was connected to a modem/router.
I’ve set up a standard mail server using the documents suggested by Vodoo (and very good they were too). I’m not having problems talking to the mail server; I just can’t ‘log in’ to it.
The only messages I can see are in syslog, an extract of which follows:
2010-08-13 18:07:22 (none) master[19110] about to exec /usr/lib/cyrus/bin/pop3d
2010-08-13 18:07:22 (none) pop3[19110] executed
2010-08-13 18:07:22 (none) pop3[19110] IOERROR: opening /var/lib/imap/user_deny.db: No such file or directory
2010-08-13 18:07:22 (none) pop3[19110] accepted connection
2010-08-13 18:07:23 (none) pop3[19110] unable to open Berkeley db /etc/sasldb2: No such file or directory
2010-08-13 18:07:23 (none) pop3[19110] badlogin: [192.168.1.201] APOP (<2287633337.1281719242@-MY.SERVER.NAME->) SASL(-13): user not found: could not find password
2010-08-13 18:07:26 (none) master[2962] process 19110 exited, status 0
NB -MY.SERVER.NAME- is just the host name of the server, not the full host and domain name (if that’s relevant at all). I get this message when I try to check for mail in the Windows mail client, where I have specified my.user@mail.my.domain as the userid. Wireshark on Windows shows:
POP S: +OK -MY.SERVER.NAME- Cyrus POP3 v2.3.16 server ready <3082890008.1281717826@-MY.SERVER.NAME->
POP S: -ERR [AUTH] authenticating: authentication failure
What follows is the contents of /etc/postfix/main.cf. I’ve made a few substitutions to make things anonymous and sorted the file to make it easier to read, but otherwise unchanged. Any ideas where I should be looking?
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
content_filter =
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
defer_transports =
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = localhost, 192.168.1.1, -MY.ISP.IP.ADDR-
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = -MY.DOMAIN.NAME-
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
mydomain = -MY.DOMAIN.NAME-
myhostname = -MY.SERVER.NAME-.-MY.DOMAIN.NAME-
mynetworks = 192.168.1.1/24, -MY.ISP.IP.ADDR-/32, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_domains = $mydestination, hash:/etc/postfix/relay
relay_domains = $mydestination, hash:/etc/postfix/relay
relayhost = -MY.ISP.MAIL.SERVER-
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = -MY.DOMAIN.NAME-
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = cyrus
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual