From michael.bartlett at workshare.com Mon Jan 7 11:27:52 2002 From: michael.bartlett at workshare.com (michael.bartlett@workshare.com) Date: Tue Dec 20 11:33:47 2005 Subject: Exim pop-before-smtp Message-ID: Hi all, I've got a set of scripts from http://cc.ysu.edu/~doug/exim-pop.tar.Z which is based on tailing /var/adm/log for IP/host information. It then uses this in exim's configure: sender_host_accept_relay = "127.0.0.1:\ lsearch;/usr/local/exim/popauth" I've looked around and seen that Solid logs to /var/log/messages and that there is no accounting of hostnames/ips - only usernames. I can't seem to find any howto's on the web for getting Solid to work with a similar method. Could anyone give me a hand or point me in the right direction? Cheers Michael From wash at wananchi.com Mon Jan 7 12:25:16 2002 From: wash at wananchi.com (Odhiambo Washington) Date: Tue Dec 20 11:33:47 2005 Subject: Exim pop-before-smtp In-Reply-To: References: Message-ID: <20020107112516.GA42758@ns2.wananchi.com> * michael.bartlett@workshare.com [20020107 13:24]: wrote: > Hi all, > > I've got a set of scripts from http://cc.ysu.edu/~doug/exim-pop.tar.Z which > is based on tailing /var/adm/log for IP/host information. It then uses this > in exim's configure: > > sender_host_accept_relay = "127.0.0.1:\ > lsearch;/usr/local/exim/popauth" Hi Michael, I took a look at those scripts and I think it's not a good idea to relay for every host that POPs from your server because IMHO, you should ALLOW people to pop their e-mails from anywhere on the net but you don't want to relay for the whole Internet. > I've looked around and seen that Solid logs to /var/log/messages and that > there is no accounting of hostnames/ips - only usernames. I can't seem to > find any howto's on the web for getting Solid to work with a similar method. > Could anyone give me a hand or point me in the right direction? While I haven't yet managed to run solid-pop3d (on FreeBSD), I saw certain compile options that are the only ones I guess could see. Perhaps you need to do ./configure while including the options below?? --enable-resolve - log resolved host name with IP number --enable-connect - log "connect from xxx" message --enable-logextend - log peer IP number in few additional places --enable-statistics - add support for qpopper-like statistics Also may I please request that you show me your config file that you use to run this daemon??? I have installed it but when I put a configure file in place it just 'refuses' to start. Thank in advance. -Wash S y s t e m s A d m i n. -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Jenkinson's Law: It won't work. From michael.bartlett at workshare.com Mon Jan 7 12:47:11 2002 From: michael.bartlett at workshare.com (michael.bartlett@workshare.com) Date: Tue Dec 20 11:33:47 2005 Subject: Exim pop-before-smtp Message-ID: Hi there Wash! With regards to your comment on the relaying. Somebody needs to do a successful POP in order to relay - and then that list gets cleared up every 30 minutes. So the "whole internet" can't actually relay in these circumstances. With regards to your query about starting the server. I assume that you are tring to start it from the command line path/to/spop3d right? Solid binds to inetd unless you compile it with a special configure option. The way I start it is by having this line in my /etc/inetd.conf: pop3 stream tcp nowait.100 root /usr/libexec/spop3d -d -n /var/mailbox/%s/ -t maildir spop3d Please note that you will probably want to change the /var/mailbox/ to /var/mail and possibly the path to your binary! Then you need to kill -1 inetd. Good luck! Michael -----Original Message----- From: Odhiambo Washington [mailto:wash@wananchi.com] Sent: 07 January 2002 11:25 To: solidpop3d-list@lists.pld.org.pl Cc: Michael Bartlett Subject: Re: Exim pop-before-smtp * michael.bartlett@workshare.com [20020107 13:24]: wrote: > Hi all, > > I've got a set of scripts from http://cc.ysu.edu/~doug/exim-pop.tar.Z which > is based on tailing /var/adm/log for IP/host information. It then uses this > in exim's configure: > > sender_host_accept_relay = "127.0.0.1:\ > lsearch;/usr/local/exim/popauth" Hi Michael, I took a look at those scripts and I think it's not a good idea to relay for every host that POPs from your server because IMHO, you should ALLOW people to pop their e-mails from anywhere on the net but you don't want to relay for the whole Internet. > I've looked around and seen that Solid logs to /var/log/messages and that > there is no accounting of hostnames/ips - only usernames. I can't seem to > find any howto's on the web for getting Solid to work with a similar method. > Could anyone give me a hand or point me in the right direction? While I haven't yet managed to run solid-pop3d (on FreeBSD), I saw certain compile options that are the only ones I guess could see. Perhaps you need to do ./configure while including the options below?? --enable-resolve - log resolved host name with IP number --enable-connect - log "connect from xxx" message --enable-logextend - log peer IP number in few additional places --enable-statistics - add support for qpopper-like statistics Also may I please request that you show me your config file that you use to run this daemon??? I have installed it but when I put a configure file in place it just 'refuses' to start. Thank in advance. -Wash S y s t e m s A d m i n. -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Jenkinson's Law: It won't work. From wash at wananchi.com Mon Jan 7 13:34:08 2002 From: wash at wananchi.com (Odhiambo Washington) Date: Tue Dec 20 11:33:47 2005 Subject: Exim pop-before-smtp In-Reply-To: References: Message-ID: <20020107123408.GD42758@ns2.wananchi.com> * michael.bartlett@workshare.com [20020107 14:43]: wrote: > Hi there Wash! Hello Michael, > > With regards to your comment on the relaying. Somebody needs to do a > successful POP in order to relay - and then that list gets cleared up every > 30 minutes. So the "whole internet" can't actually relay in these > circumstances. Jeez!! I missed that point of clearing. I withdraw my assertion and profusely apologize to whoever this touched negatively. > With regards to your query about starting the server. I assume that you are > tring to start it from the command line path/to/spop3d right? Solid binds to > inetd unless you compile it with a special configure option. The way I start > it is by having this line in my /etc/inetd.conf: > > pop3 stream tcp nowait.100 root /usr/libexec/spop3d -d -n > /var/mailbox/%s/ -t maildir spop3d Well, what happens is that I just want to start it without those default args, especially the -n ; I use the line below: pop3 stream tcp nowait.100 root /usr/libexec/spop3d spop3d I will of course add the -d (for debug??). I want to use a config file. The default system accounts should have their mail in /var/mail (e.g user wash == /var/mail/wash). Once I get it working well, I'll want to change this delivery location to $HOME/wash/Mail. I also have Virtual domains. The addresses on these have no real system accounts. The passwords are stored in /etc/virtual/$domain/passwd. Their e-mails are delivered to /var/spool/virtual/$domain/username. Is there a possibility that solidpop3d could authenticate against that external file? > > Please note that you will probably want to change the /var/mailbox/ to > /var/mail and possibly the path to your binary! Then you need to kill -1 > inetd. > That much is fine with me and quite clear. I only wonder how you handle virtual domains out there. Do you give users on virtual domains system accounts???? If not how do you authenticate them? On the MTA side I use Exim and I'll be alright with it. Right now it delivers to /var/mail and that is what I'd like to test against. Thank you for your time. -Wash S y s t e m s A d m i n. -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Do not sleep in a eucalyptus tree tonight. From wash at wananchi.com Mon Jan 7 18:26:18 2002 From: wash at wananchi.com (Odhiambo Washington) Date: Tue Dec 20 11:33:47 2005 Subject: VM-POP3D In-Reply-To: <20020107163228.GA8384@pangeia.com.br> References: <20020103164013.D52381@ns2.wananchi.com> <20020103135317.GD15203@pangeia.com.br> <20020107072730.GG69484@ns2.wananchi.com> <20020107115028.GC6826@pangeia.com.br> <20020107121355.GC42758@ns2.wananchi.com> <20020107163228.GA8384@pangeia.com.br> Message-ID: <20020107172618.GA26336@ns2.wananchi.com> * Nelson Murilo [20020107 19:31]: wrote: > On Mon, Jan 07, 2002 at 03:13:55PM +0300, Odhiambo Washington wrote: > > Hello Nelson, > > Hi, > > > Right now I am testing this daemon. Could you please show me a portion > > of one of the config files that you use? I intend to use Maildir (at > > a proven stage) but right now I'd like to test both mailbox and Maildir. > > my /etc/inetd.conf entry: > pop3 stream tcp nowait root /usr/local/sbin/spop3d spop3d -n Maild > ir -t maildir That line runs fine when I do not use spop3d.conf ;-) > > > I have installed it from FreeBSD ports and also tried building from the > > source. All are giving me problems. > > I too use FreeBSD (4.4R) and building from the source. Okay so we're together in this, yes? Thank God. > > > While testing, I started with a _simple_ config file which I expected to > > allow access to mailbox on the system. My mailspool is /var/mail. > > It looks like this: > > > > > > > AllowRootLogin no > > MailDropName /var/mail/%s > > MailDropType mailbox > > # UserBullFile .spop3d-blurp /* It's just an example */ > > ReadExpire 0 > > > > > > > > When I try starting the daemon, it just dies with the following message: > > What could the problem be here? > > You try use quotes? > MailDropName "/var/mail/%s" Here: I have changed my config file to the one below: AllowRootLogin "no" MailDropName "/var/mail/%s" MailDropType mailbox # UserBullFile .spop3d-blurp /* It's just an example */ ReadExpire 0 AllowNonIP false # MailDropName "/var/spool/virtual/freebsd.co.ke/%s" MailDropType mailbox AllowNonIP true DoMapping true MapUserFile "/etc/virtual/freebsd.co.ke/aliases" Then When I try to access it... alligator# telnet 0 110 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. Connection closed by foreign host. alligator# then... alligator# less /var/log/messages Jan 7 20:15:59 alligator spop3d[16756]: connect from alligator.wananchi.com (62.8.64.108) Jan 7 20:15:59 alligator spop3d[16757]: config file: line 2, column 1: unknown option name I don't know what it hates here!! Can spop3d authenticate users externally like vm-pop3d ?? Even against MySql db? -Wash S y s t e m s A d m i n. -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Important letters which contain no errors will develop errors in the mail. Corresponding errors will show up in the duplicate while the Boss is reading it.