Hey mate, I'm seeing permission errors,
What are the permissions of /var/mail/domain.com and /var/mail? -----Original Message----- From: James Triplett [mailto:[email protected]] Sent: Tuesday, September 16, 2014 9:48 PM To: [email protected] Subject: Aliases being ignored? I've moved my mail server from an ancient version of OpenSMTPD to a new one, running on OpenBSD 5.5, and using the latest code from opensmtpd.org. Most of the setup was moved over intact. It's a fairly simple maildir-based setup, and most things are working fine. However, we use a lot of group mail aliases- and they are all getting ignored. The system seems to find the alias, enumerates the members, and then goes on to try and deliver to the alias name as if it was a user. Very odd. If anyone has a pointer to what might be going on, I'd be very grateful. Aliases fragment:---------------------------- software: [email protected], [email protected] ittest1: itguy, postmaster ittest2: [email protected], [email protected] sw_mgr: [email protected] (I've tried aliases with and with the domain name) smtpd.conf fragment:---------------------------- listen on all port 25 hostname mail.domain.com listen on all port 465 tls pki domain.com hostname mail.domain.com auth-optional table aliases db:/etc/mail/aliases.db # this one is a symlink # accept from any for domain "domain.com" alias <aliases> deliver to maildir "/var/mail/domain.com/%{rcpt.user}/" # this is the current physical destination accept from any for domain "domain.com" alias <aliases> deliver to maildir "/data2/snapshot2/domain.com/%{rcpt.user}/" # local mail accept from local for local alias <aliases> deliver to maildir "/var/mail/domain.com/%{rcpt.user}/" accept from local for any relay via smtp://relay.domain.net # outgoing mail accept from source { 192.168.1.0/24 } for any relay via smtp://relay.domain.net log info ------------------------------------------------ ug: mda: got mda fd 4 for session 204b2f2a9b944a72 evpid 1acc6a9443e6eeb4 debug: smtpd: forking mda for session 204b2f2bfaec5727: "/data2/snapshot2/domain.com/engr/" as mm debug: smtpd: mda process done for session 204b2f2876551fa8: exited abnormally debug: mda: io disconnected on session 204b2f2a9b944a72 debug: smtpd: mda process done for session 204b2f2a9b944a72: exited abnormally debug: mda: got mda fd 5 for session 204b2f2bfaec5727 evpid 1acc6a947e3fa121 debug: mda: end-of-file for session 204b2f2bfaec5727 evpid 1acc6a947e3fa121 debug: smtpd: forking mda for session 204b2f2cb2c36e8b: "/data2/snapshot2/domain.com/engr/" as dl delivery: TempFail for 1acc6a94055c81f2: from=<[email protected]>, to=<[email protected]>, rcpt=<[email protected]>, user=dd, method=maildir, delay=1m30s, stat=Error ("cannot cd to maildir: Permission denied") debug: mda: session 204b2f2876551fa8 done debug: mda: user "dd" becomes runnable debug: mda: all done for user "<getpwnam>:dd" debug: mda: all data sent for session 204b2f2bfaec5727 evpid 1acc6a947e3fa121 delivery: TempFail for 1acc6a9443e6eeb4: from=<[email protected]>, to=<[email protected]>, rcpt=<[email protected]>, user=bz, method=maildir, delay=1m30s, stat=Error ("cannot cd to maildir: Permission denied") debug: mda: session 204b2f2a9b944a72 done debug: mda: user "bz" becomes runnable debug: mda: all done for user "<getpwnam>:bz" debug: mda: got mda fd 4 for session 204b2f2cb2c36e8b evpid 1acc6a9481157872 debug: smtpd: forking mda for session 204b2f2de9cf3260: "/data2/snapshot2/domain.com/engr/" as dw debug: smtpd: forking mda for session 204b2f2e0aa6380b: "/data2/snapshot2/domain.com/engr/" as wt debug: mda: got mda fd 5 for session 204b2f2de9cf3260 evpid 1acc6a94ad2bb610 debug: mda: io disconnected on session 204b2f2cb2c36e8b debug: mda: end-of-file for session 204b2f2de9cf3260 evpid 1acc6a94ad2bb610 debug: mda: all data sent for session 204b2f2de9cf3260 evpid 1acc6a94ad2bb610 debug: smtpd: mda process done for session 204b2f2cb2c36e8b: exited abnormally debug: smtpd: mda process done for session 204b2f29268828c8: exited abnormally debug: smtpd: mda process done for session 204b2f2de9cf3260: exited abnormally debug: smtpd: mda process done for session 204b2f2e0aa6380b: exited abnormally debug: mda: got mda fd 5 for session 204b2f2e0aa6380b evpid 1acc6a94eeed1ad0 debug: smtpd: mda process done for session 204b2f2bfaec5727: exited abnormally -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
