1. Download the smtp after pop patch and patch it to the qmail source. The patch is available at
http://www.lifewithqmail.org/ldap/patches/smtp-after-pop/smtp-after-pop-20010801.patch patch -p1 < smtp-after-pop-20010801.patch 2. After patching you have to enable smtp after pop by adding "-DSMTP_AFTER_POP" to LDAPFLAGS in Makefile. 3. make setup check 4. Create a script in /usr/local/bin/pop3-record as #!/bin/sh echo "$TCPREMOTEIP:allow,RELAYCLIENT=\"\",TCPREMOTEINFO=\"$AUTHUSER\"" >> /service/qmail-smtpd/tcp.filter.newer cat /service/qmail-smtpd/tcp.filter.* /service/qmail-smtpd/tcp | tcprules /service/qmail-smtpd/tcp.cdb /service/qmail-smtpd/tcp.cdb.$$ The above script will add an entry for relay when ever you pop 5. To remove that run the following script in cron every 10 mins. create the file /var/qmail/bin/smtpcron as #!/bin/sh mv /service/qmail-smtpd/tcp.filter.newer /service/qmail-smtpd/tcp.filter.older touch /service/qmail-smtpd/tcp.filter.newer cat /service/qmail-smtpd/tcp.filter.* /service/qmail-smtpd/tcp | tcprules /service/qmail-smtpd/tcp.cdb /service/qmail-smtpd/tcp.cdb.$$ 6. Create a file tcp in /service/qmail-smtpd/ and it should contain. :deny The above line will deny all by default. Regards, Keerthi > > >POP before SMTP is an old hack - kind of got out of fashion now > >that a much better solution - AUTH - is available. > > > > I would rather prefer pop before smtp as our mail distribution s/w > does not support smtp auth. > > Can you tell me how to implement pop before smtp on qmail ? > > Regards, > rajeev > ___________________________________________________ > Get email that means BUSINESS! me @ mycompany.com. > Just Rs.1499/year. > To start, click http://www.rediffmailpro.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help > ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
