qmail Digest 26 Aug 2001 10:00:00 -0000 Issue 1468
Topics (messages 68532 through 68549):
Re: [ot] winmail.dat? (was: filthy damn newbies)
68532 by: Brett Randall
Re: qmail-queue technical question
68533 by: Charles Cazabon
Re: Qmail-scanner & IScan -- Not scanning for viruses!
68534 by: Charles Cazabon
68548 by: board master
qmail on dial-up gateway
68535 by: Martin Dvorak
68537 by: Jeff Palmer
68539 by: Charles Cazabon
68542 by: Morten Liebach
68543 by: Charles Cazabon
68544 by: Morten Liebach
68545 by: Clemens Hermann
68547 by: Charles Cazabon
Re: qmail-verh and qmail-qmtp
68536 by: Johan Almqvist
qq temporary problem
68538 by: qlist.ns.intertet.net
68540 by: Charles Cazabon
qmail courierimap with stunnel
68541 by: Zachary Denison
This is HOWTO use qmail & courierimap(ssl) with tcpserver
68546 by: Zachary Denison
qmail+mysql+checkpassword
68549 by: Nauman ul-Haque
Administrivia:
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To bug my human owner, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
>>>>> On Sat, 25 Aug 2001 07:34:46 +0200, J�rgen Persson <[EMAIL PROTECTED]> said:
> On Fri, Aug 24, 2001 at 08:05:59PM +0200, Peter van Dijk wrote:
>> Do you think you could leave out the winmail.dat next time? Thank
>> you.
> Does anyone know what it is?
When Outlook/Express is set up to send using Rich Text Format (a
proprietory format, not the normal claggy HTML one), it puts a whole
lot of crap in that file...
--
FATAL SYSTEM ERROR: Press F13 to continue...
Boris K�ster <[EMAIL PROTECTED]> wrote:
>
> thanks for your very interesting reply, I see there is a lot wrong in
> my code...
Well, perhaps not "lots" -- just several simple errors.
> CC> readlines() isn't really what you want here, anyway -- the envelope, in
> CC> particular, won't contain linefeeds. It's ASCII NUL terminated strings
> CC> in series.
>
> Aha, interesting to know, I am completely wrong at this point.
What you probably want to do is something more like this:
data = fd1.read()
parts = string.split (data, '\0')
sender = parts[0]
recips = parts[1:-1]
This reads the whole contents of the envelope into the "data" variable.
Then it uses string.split() to separate out the parts bound by ASCII NUL
-- since the file ends with two NULs, there will be an empty part at the
end. The sender is the first ([0]), and the recipients are 1 through
N-1 (skip the last empty one).
To write it out again, do something like:
fd1.write (sender + '\0')
for recip in recips:
fd1.write (recip + '\0')
fd1.write ('\0')
> >> koz=''
> >> for key in fd0:
> >> koz=koz + key + "\n"
>
> CC> What are you trying to do here? Add additional linefeeds to each line
> CC> in the message? That will mess the header up nicely -- only the first
> CC> line will remain in the header; the rest of it will be considered part
> CC> of the body due to the extra linefeed after the first line.
>
> Aaaaah yes, I understand (hope) lol.
Yes, the lines still have their linefeeds when you read them in with
readlines(). If you really want to lose them, do something like:
lines = map (lambda x: x[-1] == '\n' and x[:-1] or x, lines)
after readlines().
> >> koz ="/var/qmail/bin/qmail-queue.orig "+koz
>
> CC> ... then you prepend the path to qmail-queue to the message contents...
>
> >> infd, outfd = popen2.popen2(koz)
>
> CC> Then you try to open the whole mess of a string as a command. It
> CC> doesn't exist. I think you mean to open the command and then feed it
> CC> the message on stdin, but this is not the way to do it.
>
> Yes I have seen this, too. Puh..
You probably want something more like:
out, in = popen2.popen2 (command)
in.write (message)
in.close ()
commandoutput = out.read ()
But see the docs for popen2 for more details.
> I am writing the blue marked module for QSP specified here:
> http://www.x-itec.de/QSP/index-modules.html
I had a look; good luck.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
Lars Hansson <[EMAIL PROTECTED]> wrote:
> On Sat, Aug 25, 2001 at 03:22:16AM +0000, board master wrote:
> > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
>
> This line should be either
> QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"; export QMAILQUEUE
> or
> export QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
>
> You forgot the ";" so qmail-scanner-queue.pl will never be executed.
It's perfectly valid with bash; I don't know if it works with a
pure-Bourne shell.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
Well, I don't know what's wrong, but this doesn't work either. Something
else is going on...I wonder what....
>Lars Hansson <[EMAIL PROTECTED]> wrote:
> > On Sat, Aug 25, 2001 at 03:22:16AM +0000, board master wrote:
> > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
> >
> > This line should be either
> > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"; export QMAILQUEUE
> > or
> > export QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
> >
> > You forgot the ";" so qmail-scanner-queue.pl will never be executed.
>
>It's perfectly valid with bash; I don't know if it works with a
>pure-Bourne shell.
>
>Charles
>--
>-----------------------------------------------------------------------
>Charles Cazabon <[EMAIL PROTECTED]>
>GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
>-----------------------------------------------------------------------
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Hi,
I have a small LAN (7 computers) connected through FreeBSD
dial-up server to Internet. Internet connection is automatically
established a few times a day. Architecture looks like this:
ISP
|
--------------
| FreeBSD GW |
--------------
|
------------- ------------- -------------
| LAN BOX 1 | - | LAN BOX 2 | - ... - | LAN BOX 7 |
------------- ------------- -------------
What I would like to do is following:
1. Have POP3/IMAP server on FreeBSD GW. This server should
download messages from various accounts on Internet servers
when dial-up link to ISP is up, and it should place them
in corresponding local mailboxes thus allowing LAN boxes
to retrieve mail from FreeBSD GW even when it's not connected
to Internet.
2. Have SMTP server on FreeBSD GW. This server should cache
all outgoing messages and send them when dial-up link to ISP
goes up (probably using ISP's SMTP server, or, if it is no
harm, send them directly). When the dial-up link is up, it
should send any received messages immediately and not wait
for next time dial-up link goes up.
3. Messages which are addressed to mailboxes which are later
downloaded to local POP3/IMAP server should never be sent
to Internet but instead immediately sent to corresponding
local mailboxes (no matter what is the status of the dial-up
link).
I am pretty sure qmail together with some addons is capable
of doing this. I would appreciate your opinion on what
combination of what packages is best for this scenario. It
is my first attempt to implement such system and have minimal
experience with it although I use qmail in many other scenarios.
Thanks very much for your opinions.
-md-
On Sat, 25 Aug 2001, Martin Dvorak wrote:
> Hi,
>
> I have a small LAN (7 computers) connected through FreeBSD
> dial-up server to Internet. Internet connection is automatically
> established a few times a day. Architecture looks like this:
<snip>
> What I would like to do is following:
>
> 1. Have POP3/IMAP server on FreeBSD GW. This server should
> download messages from various accounts on Internet servers
> when dial-up link to ISP is up, and it should place them
> in corresponding local mailboxes thus allowing LAN boxes
> to retrieve mail from FreeBSD GW even when it's not connected
> to Internet.
Try fetchmail. it's perfect for this.
http://www.tuxedo.org/~esr/fetchmail/
>
> 2. Have SMTP server on FreeBSD GW. This server should cache
> all outgoing messages and send them when dial-up link to ISP
> goes up (probably using ISP's SMTP server, or, if it is no
> harm, send them directly). When the dial-up link is up, it
> should send any received messages immediately and not wait
> for next time dial-up link goes up.
>
1. In /var/qmail/control/smtproutes, add :your.isp.mailserver.com
(flavor the path, to taste.)
2. Add a script called /etc/ppp/ppp-linkup (IIRC this is the script fbsd
executes upon creating a ppp connection) simply have it send qmail-send
an -ALRM signal (killall -ALRM qmail-send will work nicely on fbsd)
> 3. Messages which are addressed to mailboxes which are later
> downloaded to local POP3/IMAP server should never be sent
> to Internet but instead immediately sent to corresponding
> local mailboxes (no matter what is the status of the dial-up
> link).
>
Qmail will do this by default. if it can deliver locally, it will
regardless of the dial-up connection.
> I am pretty sure qmail together with some addons is capable
> of doing this. I would appreciate your opinion on what
> combination of what packages is best for this scenario. It
> is my first attempt to implement such system and have minimal
> experience with it although I use qmail in many other scenarios.
>
> Thanks very much for your opinions.
>
These are just that, my opinions.
Jeff Palmer
[EMAIL PROTECTED]
Martin Dvorak <[EMAIL PROTECTED]> wrote:
Jeff gave you one way to make this possible. Another is...
> 1. Have POP3/IMAP server on FreeBSD GW. This server should
> download messages from various accounts on Internet servers
> when dial-up link to ISP is up, and it should place them
> in corresponding local mailboxes thus allowing LAN boxes
> to retrieve mail from FreeBSD GW even when it's not connected
> to Internet.
I'd recommend my own getmail over fetchmail; however, if you want to use
fetchmail, configure it to use an MDA rather than delivering by
re-injecting with SMTP. Postmasters all over the net will thank you for
it.
> 2. Have SMTP server on FreeBSD GW. This server should cache
> all outgoing messages and send them when dial-up link to ISP
> goes up (probably using ISP's SMTP server, or, if it is no
> harm, send them directly). When the dial-up link is up, it
> should send any received messages immediately and not wait
> for next time dial-up link goes up.
Use a catchall virtual domain and maildirsmtp. In your link-up script,
call maildirsmtp to deliver all the mail to your ISP's smarthost. You
can deliver directly, but maildirsmtp isn't meant for this; you'd have
to do a lot more fiddling.
> 3. Messages which are addressed to mailboxes which are later
> downloaded to local POP3/IMAP server should never be sent
> to Internet but instead immediately sent to corresponding
> local mailboxes (no matter what is the status of the dial-up
> link).
If the local domain is in locals or virtualdomains (as it should be),
this is automatic.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
On 25, Aug, 2001 at 11:41:07AM -0600, Charles Cazabon wrote:
> I'd recommend my own getmail over fetchmail; however, if you want to use
> fetchmail, configure it to use an MDA rather than delivering by
> re-injecting with SMTP. Postmasters all over the net will thank you for
> it.
Wondering: Why is that?
I've been using fetchmail to re-inject with SMTP for years now, with no
ill effects that I know of.
Regards
Morten
--
1024D/D796A4EB 2001-06-18 Morten Liebach <[EMAIL PROTECTED]>
Key fingerprint = 43F0 B319 E12D 50A9 04C0 68B7 E34A 388E D796 A4EB
OpenBSD 2.9 PC89225#5
Morten Liebach <[EMAIL PROTECTED]> wrote:
> On 25, Aug, 2001 at 11:41:07AM -0600, Charles Cazabon wrote:
> > I'd recommend my own getmail over fetchmail; however, if you want to use
> > fetchmail, configure it to use an MDA rather than delivering by
> > re-injecting with SMTP. Postmasters all over the net will thank you for
> > it.
>
> Wondering: Why is that?
>
> I've been using fetchmail to re-inject with SMTP for years now, with no
> ill effects that I know of.
That's the whole problem; when it breaks, you don't find out about it --
instead, the bounces go to the original message sender, or (more often)
an address which fetchmail picked out of the message headers somewhere
and decided to use as the envelope sender. It's particularly noxious
with list mail, as the bounces don't go to the list manager, and the
offending address is never removed from the list. I've got a couple of
dozen mailservers blocked at my SMTP port specifically because there's a
broken fetchmail config there, and I've been unable to reach the people
responsible.
Re-delivery by SMTP injection is a fundamentally broken design.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
On 25, Aug, 2001 at 01:53:05PM -0600, Charles Cazabon wrote:
> Morten Liebach <[EMAIL PROTECTED]> wrote:
> > On 25, Aug, 2001 at 11:41:07AM -0600, Charles Cazabon wrote:
> > > I'd recommend my own getmail over fetchmail; however, if you want to use
> > > fetchmail, configure it to use an MDA rather than delivering by
> > > re-injecting with SMTP. Postmasters all over the net will thank you for
> > > it.
> >
> > Wondering: Why is that?
> >
> > I've been using fetchmail to re-inject with SMTP for years now, with no
> > ill effects that I know of.
>
> That's the whole problem; when it breaks, you don't find out about it --
> instead, the bounces go to the original message sender, or (more often)
> an address which fetchmail picked out of the message headers somewhere
> and decided to use as the envelope sender. It's particularly noxious
> with list mail, as the bounces don't go to the list manager, and the
> offending address is never removed from the list. I've got a couple of
> dozen mailservers blocked at my SMTP port specifically because there's a
> broken fetchmail config there, and I've been unable to reach the people
> responsible.
>
> Re-delivery by SMTP injection is a fundamentally broken design.
Thanks I got wiser, and I've fixed it here at my place.
HAND
Morten
--
1024D/D796A4EB 2001-06-18 Morten Liebach <[EMAIL PROTECTED]>
Key fingerprint = 43F0 B319 E12D 50A9 04C0 68B7 E34A 388E D796 A4EB
OpenBSD 2.9 PC89225#5
Am 25.08.2001 um 13:53:05 schrieb Charles Cazabon:
Hi Charles,
> Re-delivery by SMTP injection is a fundamentally broken design.
these days I wanted to setup a local mail proxy which fetches mails from
a catchall-account and deliveres them locally. I wanted to use getmail
because of the bad reputation fetchmail received here earlier but I
could not solve the following issues:
1) I need some kind of GUI Administration for the mail-proxy (not for me :)
and I prefere omail-admin/vmailmgr a lot. I did not find a way to
convince getmail to use the vmailmgr maildirs. Is there a chance to use
getmail in such an environment?
2) can getmail be used with pop3-ssl?
tia
/ch
--
"Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with."
Clemens Hermann <[EMAIL PROTECTED]> wrote:
>
> these days I wanted to setup a local mail proxy which fetches mails from
> a catchall-account and deliveres them locally. I wanted to use getmail
> because of the bad reputation fetchmail received here earlier but I
> could not solve the following issues:
>
> 1) I need some kind of GUI Administration for the mail-proxy (not for me :)
> and I prefere omail-admin/vmailmgr a lot. I did not find a way to
> convince getmail to use the vmailmgr maildirs. Is there a chance to use
> getmail in such an environment?
getmail can deliver to vmailmgr Maildirs, but there's no GUI for it.
YOu have to write the getmailrc file yourself. It's not hard.
> 2) can getmail be used with pop3-ssl?
Yes, with stunnel or a similar utility.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
* Johan Almqvist <[EMAIL PROTECTED]> [010823 20:22]:
> * Johan Almqvist <[EMAIL PROTECTED]> [010823 16:18]:
> > * Federico Edelman Anaya <[EMAIL PROTECTED]> [010823 16:08]:
> > > Hi! ... I need a problem :) I need a qmail-verh work with my
> > > qmail-remote (qmail-1.03-qmtpc-mailroutes-1.5.patch) ...
> > I'll take a look later tonite.
> Both patches will apply if you apply the verh patch first. There's a bit
> of "hunk succeeded" but it works fine...
...but verh expansion is only done in smtp. not in qmtp. How very
un-modular. Duh. I'm still on it. Sorry!
-Johan
--
Johan Almqvist
http://www.almqvist.net/johan/qmail/
PGP signature
Hi,
I have compiled qmail with QMAILQUEUE patch and installed
qmail-qfilter. I think I have made all the necessary things.
my tcp.smpt file contains:
10.64.11.1:allow,RELAYCLIENT=3D"",QMAILQUEUE=3D"/bin/test.pl"
and test.pl:
#!/usr/bin/perl
while (<STDIN>) {
print;
}
its just for testing.... before test.pl I tried qmail-qfilter samples.
There was no change, when sending mails, it gives "qq temporary problem".
any idea?
thanks in advance..
Ertan Yusufoglu
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I have compiled qmail with QMAILQUEUE patch and installed
> qmail-qfilter. I think I have made all the necessary things.
> my tcp.smpt file contains:
> 10.64.11.1:allow,RELAYCLIENT=3D"",QMAILQUEUE=3D"/bin/test.pl"
I assume this is MIME quoted-unreadable mangling.
> and test.pl:
> #!/usr/bin/perl
> while (<STDIN>) {
> print;
> }
> its just for testing.... before test.pl I tried qmail-qfilter samples.
> There was no change, when sending mails, it gives "qq temporary problem".
> any idea?
See the archives. Your memory limit is too small for the Perl
interpreter.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------
Has anyone used courierimap with stunnel instead of
couriertls. If so, what did you use for a run file?
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
I am posting this for the benefit of all the people
out there like me who need are using qmail with
CourierIMAP over SSL and want to use tcpserver.
This is what your run file should look like:
(I'll just reiterate it here but I want to give credit
to Henning for mentioning it the first time: auth_imap
is qmail-ldap specific, you can replace with
checkpassword for a virgin qmail installation.)
#!bin/sh
exec_prefix=/usr/local/imap
qmai_prefix=/var/qmail
exec /usr/bin/env - /bin/sh -c "\
. ${exec_prefix}/etc/imapd;\
. ${exec_prefix}/etc/imapd-ssl;\
IMAP_TLS=1; export IMAP_TLS;\
`sed -n '/^#/d;/=/p' <${exec_prefix}/etc/imapd | sed
's/=.*//;s/^/export /;s/$/;/'`
`sed -n '/^#/d;/=/p' <${exec_prefix}/etc/imapd-ssl |
sed 's/=.*//;s/^/export /;s/$/;/'`
exec tcpserver -c 100 -l 0 -v -R 0 imaps \
${exec_prefix}/bin/couriertls -server -tcpd \
${exec_prefix}/sbin/imaplogin \
${qmai_prefix}/bin/auth_imap \
${exec_prefix}/bin/imapd Maildir 2>&1"
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
Hi,
Ive been trying to install qmail+mysql. My qmail is running just fine all by itself.
The databse is working, the very first checking step "qmail-getpw " works fine too.
But I have been unable to run checkpassword with qmail and mysql. Its compiled with
the changes, its installed and everything but the test... perl -e 'printf
"user1\0myPass\0Y123456\0"' | ./checkpassword `which id` 3<&0 ... doesnt work. If I
run the same test with a system user it works. I checked the mysql logs and they do
show a query being made with the above command, but nothing is shown or no output is
given with the command. I ran that query in mysql directly and it works and shows the
user, but the perl command doesnt.Here is the query in mysql's logs..
28 Quit
010826 8:29:31 29 Connect qmail@localhost on
29 Init DB qmail
29 Query SELECT id,crypt,uid,gid,home,shell FROM table1
WHERE id='user1' AND active=1
29 Quit
I have edited the Makefile, I added the username, database name and everything in
mysql.c too. Checkpassword is compiled and installed but it wont work. Below I am
pasting the top part of my Makefile for checkpassword.
# Don't edit Makefile! Use conf-* for configuration.
SHELL=/bin/sh
# for mysql...
MYSQL_TOP=/usr
MYSQL_INCLUDE=-I/usr/local/mysql-3.23.40-pc-linux-gnu-i686/include/
MYSQL_LIBS=/usr/local/mysql-3.23.40-pc-linux-gnu-i686/lib/libmysqlclient.a -lm -
lz -lcrypt -lnsl -ldl
SQLSERVERFILE=-DSQLSERVERFILE
QMAILOBJ=auto_qmail.o
ADDCFLAGS=$(MYSQL_INCLUDE) $(SQLSERVERFILE) -DSQLSERVERFILE
ADDOBJS=mysql.o envread.o str_len.o str_diffn.o
#### ORIGINAL PART ######
I think this should be good enough if /var/qmail/control/sqlserver file is to be read.
Please tell me what can go wrong or what problem I may be facing.
Thanks in advance
Nauman
--
_______________________________________________
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
http://www.net2phone.com/cgi-bin/link.cgi?143