On Sun, Nov 17, 2013 at 09:15:29AM +1100, Brett Mahar wrote: > Hi, >
Hi, > This week I've been setting up a mail server. I've found the smtpd part much > better than the imap part! > \o/ > All was working earlier in the week, however I reinstalled > openbsd=amd64-current snapshot (its on a virtual server running on kvm host) > and now the alias for root: brett is not working like it did with the > snapshot downloaded Fri 8 Nov (I have run newaliases since editing): > > # smtpctl show queue > 3494482c906b2b98|local|mda|auth|@|[email protected]|[email protected]|1384626248|1384971848|0|55|pending|2034|"cannot > cd to maildir: No such file or directory" > 41419affd5b65be5|local|mda|auth|@|[email protected]|[email protected]|1384626251|1384971851|0|55|pending|2037|"cannot > cd to maildir: No such file or directory" > 5e7bf85ae1ca3d9b|inet4|mda||[email protected]|[email protected]|[email protected]|1384612202|1384957802|0|78|pending|3283|"cannot > cd to maildir: No such file or directory" > 623f6a2c457fe4dc|inet4|mda||[email protected]|[email protected]|[email protected]|1384612205|1384957805|0|78|pending|3286|"cannot > cd to maildir: No such file or directory" > > I've recursively changed the permissions of /home/brett/Maildir to be world > readable and writable but still get the error message above, even after > restarting smtpd and scheduling all the envelopes. > Can you run with smtpd -dv -T mda ? This will provide more logging regarding what happens at the mda level > My smtpd.conf: > > # $OpenBSD: smtpd.conf,v 1.6 2013/01/26 09:38:25 gilles Exp $ > > pki coiloptic.org certificate "/etc/mail/certs/coiloptic.org.crt" > pki coiloptic.org key "/etc/mail/certs/coiloptic.org.key" > listen on all smtps pki coiloptic.org auth tag legit > listen on all > table aliases db:/etc/mail/aliases.db > accept from any for domain "coiloptic.org" alias <aliases> deliver to maildir > "/home/%{rcpt.user}/Maildir" > accept for local alias <aliases> deliver to maildir > "/home/%{rcpt.user}/Maildir" > accept tagged legit from any sender [email protected] for any relay > Hum, the following rule doesn't seem right to me: > accept from any for domain "coiloptic.org" alias <aliases> deliver to maildir > "/home/%{rcpt.user}/Maildir" This will use the user-part of the original email BEFORE expansion. For example if you have an alias { foobar : brett }, this will try to deliver to /home/foobar/Maildir Is this intended ? You're probably better of using /home/%{user.username}/Maildir, %{user.directory/Maildir or simply ~/Maildir > I also tried changing the "local alias" line above to "accept for local alias > <aliases> deliver to maildir "/home/brett/Maildir"" but that had no effect > either. > > Has something broken in the last week, or is it a problem with my setup? I > did rush the install before going to work yesterday, so its possible I did > something wrong in installing/useradding. > Depends if the above was what you really intended :-) -- Gilles Chehade https://www.poolp.org @poolpOrg -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
