I would like to know if tmda-ofmipd should be able to handle outgoing
mail sent from a virtual mail account. From the tmda-ofmipd output, it
looks like authentication of the user is working, but then I get an
unhandled exception I think before the mail is forwarded to my MTA.
This is what I'm using to run tmda-ofmipd.
tmda-ofmipd -d -A '/usr/local/bin/couriercheckpassword -s imap --stdin
-- /bin/true' -u nobody -c /home/vmail
This is what tmda-ofmipd is showing me when I try to send mail.
**********************************************************************
WARNING: The security implications and risks of running
/usr/bin/tmda-ofmipd in "seteuid" mode have not been fully evaluated.
If you are uncomfortable with this, quit now and instead run
/usr/bin/tmda-ofmipd under your non-privileged TMDA user account.
**********************************************************************
tmda-ofmipd started at Fri Sep 27 08:26:10 EDT 2002
Listening on mailer.arda.homeunix.net:8025
Incoming connection from ('192.168.1.10', 4366)
Peer: ('192.168.1.10', 4366)
Data: 'EHLO arda.homeunix.net'
Data: 'AUTH PLAIN WoskALslEsooiEkxnHO=='
Trying authprog method
Auth: succeeded for user 'andrew'
Data: 'MAIL FROM:<[EMAIL PROTECTED]>'
===> MAIL FROM:<[EMAIL PROTECTED]>
sender: [EMAIL PROTECTED]
Data: 'RCPT TO:<[EMAIL PROTECTED]>'
===> RCPT TO:<[EMAIL PROTECTED]>
recips: ['[EMAIL PROTECTED]']
Data: 'DATA'
Data: 'Message-ID: <[EMAIL PROTECTED]>\r\nDate: Fri, 27
Sep 2002 08:26:16 -0400\r\nFrom: Andrew
<[EMAIL PROTECTED]>\r\nUser-Agent: Mozilla/5.0 (Windows; U;
Win98; en-US; rv:1.1) Gecko/20020826\r\nX-Accept-Language: en, en-ca,
en-us, ko, ru, el, a\r\nMIME-Version: 1.0\r\nTo:
[EMAIL PROTECTED]\r\nSubject: test 5\r\nContent-Type: text/plain;
charset=us-ascii; format=flowed\r\nContent-Transfer-Encoding:
7bit\r\n\r\nusing tmda-ofmipd for outgoing mail\r\n'
error: uncaptured python exception, closing channel
<__main__.SMTPChannel connected 192.168.1.10:4366 at 0x8105c34>
(exceptions.KeyError:getpwnam(): name not found
[/usr/lib/python2.2/asyncore.py|poll|94]
[/usr/lib/python2.2/asyncore.py|handle_read_event|391]
[/usr/lib/python2.2/asynchat.py|handle_read|130]
[/usr/bin/tmda-ofmipd|found_terminator|654]
[/usr/bin/tmda-ofmipd|process_message|922]
[/usr/lib/python2.2/site-packages/TMDA/Util.py|getgid|85])
My setup is:
qmail 1.03 with starttls-smtp-auth patch
courier IMAP 1.5.3
TMDA 0.62
All the mail accounts set up on my system are virtual, there are no
entries in /etc/passwd for my mail users.
The couriercheckpassword program is a checkpassword-like program. I've
successfully tested the program for both system and virtual user
accounts using this:
qmail-popup domain.com couriercheckpassword -s imap -- id
From the tmda-ofmipd trace, it looks to me like the initial
authentication of the user is working fine, but then tmda-ofmipd is
failing because its looking for user information in the /etc/passwd
file. This is a problem if it is a virtual user without an /etc/passwd
entry who is trying to send the mail.
Any thoughts on whether this should work or not? If it should, any
thoughts on why it isn't?
Andrew
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users