It shouldn't be rocket science to setup a mail client to authenticate smtp. But, for some people, it seems to be. Not having much luck googling for pop-before-smtp for courier, I wrote a quickie script to handle this. This runs through a 1-2MB logfile in well under a second, though I would certainly entertain suggestions for making it more efficient, or calling it in a better way than through a cron job...
#!/bin/bash cat /var/log/mail/current | /bin/grep -v FAILED | /bin/awk '/LOGIN/ { addr=$0; sub(/.*ip=\[/,"",addr); sub(/\].*$/,"\tallow,RELAYCLIENT,BOFHCHECKDNS=0,BOFHCHECKHELO=0,NOADDDATE=0,NOADDMSGID=0",addr) ; print addr; }' | /bin/sort -u > /etc/courier/smtpaccess/clients /usr/sbin/makesmtpaccess Blue # time /etc/courier/makepopforsmtp real 0m0.148s user 0m0.082s sys 0m0.062s Blue log # cat /etc/courier/smtpaccess/clients ::ffff:10.0.1.20 allow,RELAYCLIENT,BOFHCHECKDNS=0,BOFHCHECKHELO=0,NOADDDATE=0,NOADDMSGID=0 ::ffff:192.168.11.10 allow,RELAYCLIENT,BOFHCHECKDNS=0,BOFHCHECKHELO=0,NOADDDATE=0,NOADDMSGID=0 -- Scott Taylor <[EMAIL PROTECTED]> ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users