OK, I'm having issues with trying to get direct delivery to a mix
formatted inbox through postfix. I have been able to so far get postfix
to deliver to a unix formatted /var/mail inbox, but only then through a
nasty hack (suid root tmail, ain't happining on the production server!)
I then removed the /var/mail/<user> inbox, and created a ~user/INBOX
with mailutil create "#driver.mix/INBOX" but postfix still delivers to
/var/mail/<user> with #driver.unix/INBOX.
Anyone using postfix, tmail, and delivering directly to mbx/mix
mailboxes? If so, could you reply with your main.cf/master.cf tmail
lines and any other config pointers?
Thanks,
Tom Leach
[EMAIL PROTECTED]
The setup: RHEL 5, postfix 2.3.3 (tried 2.5 as well), /var/mail symlink
to /var/spool/mail with perm 1777, imapd 2007a1 (not dev).
postfix main.cf:
mailbox_transport = tmail
tmail_destination_recipient_limit = 1
postfix master.cf:
tmail unix - n n - - pipe
flags=DR eol=\r\n user=nobody argv=/usr/local/bin/tmail ${user}
also tried, but fail:
flags=DR eol=\r\n user=root argv=/usr/local/bin/tmail -b mix ${user}
flags=DR eol=\r\n user=nobody argv=/usr/local/bin/tmail -b mix ${user}
postfix wont let a pipe run as root, tmail won't allow -b if not root.
If I don't set tmail to suid root, then when delivery is attempted, I
get the following in /var/log/maillog (UID 1005 is my user, 99 is nobody):
Apr 10 15:15:05 galaxy4 tmail[3513]: unable to log in UID 1005 from UID 99
Apr 10 15:15:05 galaxy4 tmail[3513]: error in delivery
With tmail suid root, I get (wbr is the user):
Apr 10 15:53:39 galaxy4 tmail[3810]: delivering to wbr+INBOX
Apr 10 15:53:39 galaxy4 tmail[3810]: attempting to create mailbox
#driver.unix/INBOX path /var/spool/mail/wbr
Apr 10 15:53:39 galaxy4 tmail[3810]: created /var/spool/mail/wbr
Apr 10 15:53:39 galaxy4 tmail[3810]: Verifying safe delivery to
/var/spool/mail/wbr by UID 1005
Apr 10 15:53:39 galaxy4 tmail[3810]: unix appending to
#driver.unix/INBOX (file /var/spool/mail/wbr)
Apr 10 15:53:39 galaxy4 tmail[3810]: delivered to /var/spool/mail/wbr
Apr 10 15:53:39 galaxy4 tmail[3810]: Verifying safe delivery to
/var/spool/mail/wbr by UID 1005
Apr 10 15:53:39 galaxy4 tmail[3810]: all recipients delivered
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw