Topic: Still unable to get shadowaddress to work
I am unable to receive or send email using the shadowaddress in the from field. Mail addressed to the shadowaddress (other in this case) goes to the catchall address instead of the user account (steve in this example).
Mail sent from the shadowaddress gets in Thunderbird:
An error occurred while sending mail. The mail server responded: 5.7.1 <other@example.net>: Sender address rejected: not owned by user steve@example.net. Please check the message recipient steve@rellims.com and try again.
I made the changes to dovecot-ldap.conf as mentioned in other spots:
egrep "^user_filter|^pass_filter" /etc/dovecot-ldap.conf
user_filter = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))
pass_filter = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))
Export from iredadmin
dn: mail=steve@example.net,ou=Users,domainName=example.net,o=domains,dc=example,dc=net
accountStatus: active
amavisLocal: TRUE
cn: Steve
employeeNumber: steve
enabledService: mail
enabledService: smtp
enabledService: deliver
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: managesieve
enabledService: managesievesecured
enabledService: sieve
enabledService: sievesecured
enabledService: forward
enabledService: senderbcc
enabledService: recipientbcc
enabledService: internal
enabledService: shadowaddress
enabledService: displayedInGlobalAddressBook
homeDirectory: {omitted}
mail: steve@example.net
mailMessageStore: {omitted}
mailQuota: 0
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: shadowAccount
objectClass: amavisAccount
shadowAddress: other@example.net
sn: steve
storageBaseDirectory: /var/vmail
uid: steve
userPassword: {omitted}
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.