I'm trying to setup a mail service on my server with this and this articles.
After finishing configuration, i got working user accounts - its possible to successfully login on each account with Thunderbird, manage folders etc. I can send email from one account to another without error (at least on client side) - but they can not be delivered. In mail.log
i have:
Aug 31 13:03:46 serwer postfix/virtual[3516]: 4DCB1E132A: to=<[email protected]>, relay=virtual, delay=2117, delays=2117/0.01/0/0.01, dsn=4.2.0, status=deferred (delivery failed to mailbox /home/vmail/%d/%n/1: unable to create lock file /home/vmail/%d/%n/1.lock: No such file or directory)
Of course domain is different, just replaced it now to hide real one. As i was searching on web for solutions i noticed that in other similar log entries, path to maildir is full resolved, like:
/home/vmail/example.com/admin/1.lock
In my logs its still with %d
and %n
- is this a problem?
Postfix conf:
smtpd_tls_cert_file=/etc/postfix/ssl/smtpd.cert
smtpd_tls_key_file=/etc/postfix/ssl/smtpd.key
smtpd_use_tls=yes
smtpd_tls_auth_only=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions=permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
virtual_mailbox_base=/home/vmail/%d/%n
virtual_mailbox_domains=mysql:/etc/postfix/mysql-domains.cf
virtual_mailbox_maps=mysql:/etc/postfix/mysql-maps.cf
virtual_alias_maps=mysql:/etc/postfix/mysql-alias.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
local_recipient_maps = $virtual_mailbox_maps