Re: [vchkpw] Vpopmail Debian - Problem sending Mials

2002-10-30 Thread David Phillips
Zeno Davatz writes:
 What will this help me?

It's just a cleaner and nicer way of doing it.  qmail-conf sets up the run
script that way.  Functionally, there is no difference.

 Now on my online setup I got the following problem:
 In my office I am sitting behind a firewall. I got a t1 connection
 but I do _not_have_a fix IP.

 I am obviously sending mails only from the domains listed in
 rcpthosts but somehow I still get the 5.7.1 error! Argh.

That is good.  It means you aren't an open relay.  If you authenticate via
POP3 first, then you should be able to send mail from that IP.

 Do I have to check this or has this already been done automatically?

The POP-before-SMTP stuff is automatic.  That is why you use the
tcp.smtp.cdb file in the vpopmail/etc directory.  clearopensmtp is not
automatic, as the vpopmail makefile will not go adding things to crontab for
you.  I do believe that Debian vpopmail package sets this up.  However, it
just requires adding a single like to root's crontab:

40 * * * * root /path/to/vpopmail/bin/clearopensmtp  /dev/null 21

--
David Phillips [EMAIL PROTECTED]
http://david.acz.org/





Re: [vchkpw] Vpopmail Debian - Problem sending Mials

2002-10-29 Thread Zeno Davatz
Hi

I followed the below HOWTO and think is great - it helped me a lot. I
managed to send and receive messages locally an online.

What I do not quite understand yet is how vpopmail and qmail handle the
outgoing messages via smtp:

On 24.10.2002 2:06 Uhr, David Phillips [EMAIL PROTECTED] wrote:
... \snip
 * Install vpopmail from source.  The Debian packages are pretty old and seem
 to be buggy, at least the last time I tried.
 
 * Change the run script for qmail-smtpd (/service/qmail-smtpd/run) to use
 vpopmail.  The tcp.smtp.cdb file needs to point to the one in the vpopmail
 home directory (ex. /home/vpopmail/etc/tcp.smtp.cdb).  This step makes
 POP-before-SMTP work.
Does this file contain the all the hosts for witch my Server will send
Email?

My run file is (I just changed the path of the vpopmail-home):

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

exec softlimit -m 200 \
  tcpserver -v -R -l 0 -x /var/lib/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD
\
-u $QMAILDUID -g $NOFILESGID 0 smtp qmail-smtpd 21

When I try to send a message I get the 5.7.1 error.
I read all the documentation for Newbies on relaying from Chris.

Thanks for any help and hints.
Zeno

 * Install a qmail-pop3d service.  The easiest way to do this is qmail-conf.
 You could use qmail-conf to redo all the qmail services, but it is easier to
 stick with the ones that qmail-run sets up:
 
 http://www.din.or.jp/~ushijima/qmail-conf.html
 
 * Allow incoming connections to pop3d.  By default, it does not allow any
 connections.  There is an add-client script in
 /var/qmail/service/qmail-pop3d that can be used.  To simply allow
 connections from everywhere, create an empty tcp file and run the Makefile.
 You will need to run the Makefile after using add-client.
 
 * Change the qmail-pop3d run script to use vpopmail.  It needs to use vchkpw
 as the checkpassword program.  Change this to your vchkpw program (ex.
 /home/vpopmail/bin/vchkpw).  The parameter to be changed is the second
 parameter to qmail-popup.
 
 * Restart all of the services:
 
 svc -t /service/qmail-*
 
 * You can make things easier if you add /var/qmail/bin and the vpopmail bin
 directory to root's PATH.
 
 --
 David Phillips [EMAIL PROTECTED]
 http://david.acz.org/





Re: [vchkpw] Vpopmail Debian - Problem sending Mials

2002-10-29 Thread David Phillips
Zeno Davatz writes:
 I followed the below HOWTO and think is great - it helped me a lot. I
 managed to send and receive messages locally an online.

Cool.

 What I do not quite understand yet is how vpopmail and qmail handle
 the outgoing messages via smtp:

vpopmail does not affect outgoing mail.  It controls whether or not certain
IP's are allowed to relay mail when connecting to qmail-smtpd.

 * Change the run script for qmail-smtpd (/service/qmail-smtpd/run)
 to use vpopmail.  The tcp.smtp.cdb file needs to point to the one in
 the vpopmail home directory (ex. /home/vpopmail/etc/tcp.smtp.cdb).
 This step makes POP-before-SMTP work.
 Does this file contain the all the hosts for witch my Server will send
 Email?

tcp.smtp (compiled into tcp.smtpd.cdb) controls which IP's are allowed to
connect to tcpserver.  It defaults to allow (which would be a single
:allow line).  Setting RELAYCLIENT for an IP tells qmail-smtpd to allow it
to relay mail.

Normally, this file contains all IP's on your network, assuming you want
them to relay through qmail.  The following is an example.  RBLSMTPD is only
needed if you are using rblsmtpd.  Leaving it blank tells rblsmtpd to not
perform lookups against that address (you don't want it looking up your own
addresses):

127.:allow,RELAYCLIENT=,RBLSMTPD=
192.168.:allow,RELAYCLIENT=,RBLSMTPD=

 My run file is (I just changed the path of the vpopmail-home):

If your domains directory is on /var, then make sure you have enough space
for all the mail.

 #!/bin/sh
 QMAILDUID=`id -u qmaild`
 NOFILESGID=`id -g qmaild`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

As a tip, you can get rid of QMAILDUID and NOFILESGID by adding -U to the
tcpserver command line and using envuidgid qmaild as the first thing after
exec.

 exec softlimit -m 200 \
   tcpserver -v -R -l 0 -x /var/lib/vpopmail/etc/tcp.smtp.cdb -c
 $MAXSMTPD \
 -u $QMAILDUID -g $NOFILESGID 0 smtp qmail-smtpd 21

 When I try to send a message I get the 5.7.1 error.
 I read all the documentation for Newbies on relaying from Chris.

Does your tcp.smtp file set RELAYCLIENT for the IP that you are sending
from?

vpopmail will create vpopmail/etc/open-smtp that it merges with tcp.smtp
when building tcp.smtp.cdb.  It does this automatically for any IP that
successfully authenticates via POP3 (or anything using vchkpw, such as
Courier IMAP).  tcp.smtp.cdb is automatically rebuilt when this happens.

You need to make sure vpopmail/bin/clearopensmtp is being run from cron
every 30-60 minutes, otherwise these IP's will never expire.

--
David Phillips [EMAIL PROTECTED]
http://david.acz.org/





Re: [vchkpw] Vpopmail Debian - Problem sending Mials

2002-10-29 Thread Zeno Davatz
On 29.10.2002 21:27 Uhr, David Phillips [EMAIL PROTECTED] wrote:

 tcp.smtp (compiled into tcp.smtpd.cdb) controls which IP's are allowed to
 connect to tcpserver.  It defaults to allow (which would be a single
 :allow line).  Setting RELAYCLIENT for an IP tells qmail-smtpd to allow it
 to relay mail.
Ok. Got that.

 Normally, this file contains all IP's on your network, assuming you want
 them to relay through qmail.  The following is an example.  RBLSMTPD is only
 needed if you are using rblsmtpd.  Leaving it blank tells rblsmtpd to not
 perform lookups against that address (you don't want it looking up your own
 addresses):
 
 127.:allow,RELAYCLIENT=,RBLSMTPD=
 192.168.:allow,RELAYCLIENT=,RBLSMTPD=
Well obviously I forgot the '127.:...' entry. Now it works fine locally. I
will jut go an try online now.

 My run file is (I just changed the path of the vpopmail-home):
 
 If your domains directory is on /var, then make sure you have enough space
 for all the mail.
Yes I will do so.

 #!/bin/sh
 QMAILDUID=`id -u qmaild`
 NOFILESGID=`id -g qmaild`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 
 As a tip, you can get rid of QMAILDUID and NOFILESGID by adding -U to the
 tcpserver command line and using envuidgid qmaild as the first thing after
 exec.
What will this help me?

 exec softlimit -m 200 \
   tcpserver -v -R -l 0 -x /var/lib/vpopmail/etc/tcp.smtp.cdb -c
 $MAXSMTPD \
 -u $QMAILDUID -g $NOFILESGID 0 smtp qmail-smtpd 21
 
 When I try to send a message I get the 5.7.1 error.
 I read all the documentation for Newbies on relaying from Chris.
 
 Does your tcp.smtp file set RELAYCLIENT for the IP that you are sending
 from?
Yes, I got '127.: ...' and '192.168.0.:... ' as an entry.
Now on my online setup I got the following problem:
In my office I am sitting behind a firewall. I got a t1 connection but I do
_not_have_a fix IP.

I am obviously sending mails only from the domains listed in rcpthosts but
somehow I still get the 5.7.1 error! Argh.

 vpopmail will create vpopmail/etc/open-smtp that it merges with tcp.smtp
 when building tcp.smtp.cdb.  It does this automatically for any IP that
 successfully authenticates via POP3 (or anything using vchkpw, such as
 Courier IMAP).  tcp.smtp.cdb is automatically rebuilt when this happens.
 
 You need to make sure vpopmail/bin/clearopensmtp is being run from cron
 every 30-60 minutes, otherwise these IP's will never expire.
Do I have to check this or has this already been done automatically?

Thanks for your kind help.
Zeno