OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: POP before SMTP HOWTO

From: William Kimball Jr. (billkimballfrii.com)
Date: Wed Oct 01 2003 - 17:19:24 CDT


| You don't need to add both of the lines. The local0 line is a leftover
| comment from when I got the code. I probably should remove it from the
| comments. (when I got the code, it didn't come with anything but the
| embedded comments) IN any event, you should remove the local0 line form
| your syslog.conf file.

Done.

| It could also be that your POP daemon outputs its messages at some other
| logging level than "notice". You might try:
|
| mail.* | /var/log/popauth.fifo
|
| and see if that works.

I'm trying this recommendation now. My revised syslog.conf file (relating to mail entries) is:
mail.* /var/log/maillog
mail.* | /var/log/popauth.fifo

| kill -HUP pid (where pid is the process id of syslogd)

Thanks for the samples. A variation of this line appears in the syslogd man page and seems to be working for me:
kill -SIGHUP `cat /var/run/syslogd.pid`

| Who reports the error? Popauth? Syslogd?

syslogd reports the error on system boot. It's frustrating considering the file is obviously present. I have restarted
the server after affecting all the changes listed in this message to check up on this error; same problem. Syslog
cannot find /var/log/popauth.fifo even though it is clearly available.

| I notice you have changed some of the directory and file names from the
| instructions. Although I can't see why it would make a difference, I always
| start with exactly what an install recommends and then deviate once it's
| working.

Before actually reading the source, I chose to name the source perl file "popauth" in /etc/postfix/. This presented a
conflict in the code because the program would try to overwrite itself with each IP list update. Since I had to go in
and make changes anyway, I conformed the remaining file names with the conventions used elsewhere on my mail system.
For example, I have no /var/adm/ directory, and "popauther" didn't seem obvious enough (to me) that it was a fifo file
for popauth.

| What version of syslogd are you running...??

syslogd 1.4.1

| As I said above, I don't see any reason why it *shoudln't* work...

I agree. The perl code is simple enough and appears not to have external code dependancies that should present any
problem, as long as the new path and file names are consistant within the source. I am sure this is the case, so I am
left to wonder why I am struggling with this.

| Nope. Multiple lines are fine. It treats every line separately. I've never
| had two lines pointed at the same fifo, however. I don't know how that
| would work... (not that you need it to get this working, though...)

Good information. Thank you. It is my guess that the hang up is with syslog. No information is being sent to the
popauth.fifo file, so popauth just sleeps with nothing to do. I've briefly read the syslogd man pages and I can't find
any reason why it shouldn't find the fifo file on initialization. Consequently, I'm frustrated with it as I still don't
have POP-before-SMTP working, even though your solution seems simple enough. Thanks again for your help. If I can
provide any further information, or experimentation results, to troubleshoot this, please ask.