tcpserver and qmail-pop3d
Is there a reason why I have the check of the rules.cdb in my pop3d line of tcpserver other than to slow everything down? Theoretically we allow pop from anywhere (and the rules call on the pop3d line doesn't seem to be preventing anything [but maybe quicker downloads])... /usr/local/bin/tcpserver -c 2050 -x /etc/security/tcprules/rules.cdb 0 pop3 /var/qmail/bin/qmail-popup pop.netzero.net /bin/checkpassword /var/qmail/bin/qmail-popbull /var/spool/bulletins /var/qmail/bin/qmail-pop3d Maildir the above all being on one line of course... Thanks, -- mike b. --- [EMAIL PROTECTED]http://home.sprynet.com/~boyiazis/mikehome.htm "I propose we leave math to the machines and go play outside." Calvin --- NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html
Re: maildir2smtp
First, thank you for your help ! Look what I did : [root@mumbly bin]# ./maildirmake /home/user1toto [root@mumbly bin]# echo "/home/user1toto/" /home/toto/.qmail-toto [root@mumbly bin]# killall -HUP qmail-send The "owner" in /var/qmail/control/virtusertable is : toto.fr:toto So the email adress is : [EMAIL PROTECTED] right ?! (the DNS is OK with MX..) Now : $ echo "test" |mail [EMAIL PROTECTED] Then, /var/log/maillog says : Aug 25 09:39:14 mumbly qmail: 935566754.995717 new msg 340129 Aug 25 09:39:14 mumbly qmail: 935566754.996055 info msg 340129: bytes 213 from [EMAIL PROTECTED] qp 8593 uid 500 Aug 25 09:39:15 mumbly qmail: 935566755.262452 delivery 98578: deferral: Uh-oh:_home_directory_is_writable._(#4.7.0)/ Aug 25 09:39:15 mumbly qmail: 935566755.262791 status: local 0/10 remote 0/20 Aug 25 09:39:15 mumbly qmail: 935566755.263037 starting delivery 98579: msg 340129 to local [EMAIL PROTECTED] Aug 25 09:39:15 mumbly qmail: 935566755.263263 status: local 1/10 remote 0/20 Aug 25 09:39:15 mumbly qmail: 935566755.426084 delivery 98579: deferral: Uh-oh:_home_directory_is_writable._(#4.7.0)/ Aug 25 09:39:15 mumbly qmail: 935566755.426414 status: local 0/10 remote 0/20 Is "Uh-oh:_home_directory_is_writable._" a problem ?! I never had that. After, I do : # maildirsmtp /home/user1toto/ toto- another.local.smtp.for.test But on this other SMTP, I have not any connection, even a simple telnet on port 25.. The problem might be : [root@mumbly bin]# ls -la /home/user1toto/* /home/user1toto/cur: total 2 drwx-- 2 root root 1024 ao 25 09:35 . drwx-- 5 root root 1024 ao 25 09:35 .. /home/user1toto/new: total 2 drwx-- 2 root root 1024 ao 25 09:35 . drwx-- 5 root root 1024 ao 25 09:35 .. /home/user1toto/tmp: total 2 drwx-- 2 root root 1024 ao 25 09:35 . drwx-- 5 root root 1024 ao 25 09:35 .. So where is he's mail ? Normally, I configure qmail like that : useradd user passwd user touch /home/$uzer/Mailbox ln -s --force /home/$uzer/Mailbox /var/spool/mail/$uzer So users mailboxes are in ~/Mailbox Any idea ? Please I really need help ... Thanks !! ___ Dimitri SZAJMAN [EMAIL PROTECTED] http://www.xon-xoff.fr On Tue, 24 Aug 1999 [EMAIL PROTECTED] wrote: On Mon, Aug 23, 1999 at 03:17:13PM +0200, Dimitri SZAJMAN wrote: What is needed for maildirsmtp ? I have tryied a lot of thing but no success :-/ you need qmail to deliver into maildir, e.q. $ maildirmake /path/to/Maildir/ $ echo "/path/to/Maildir/" /path/toyour/.qmail-something now qmail will deliver into this new and fresh maildir. now, you may send this maildir using maildirsmtp to a smtp-server of your choice: $ maildirsmtp /path/to/Maildir/ something- smtp.somewhere.com this "something-" thing is dependant on your installation. -- gruß, mike gerber
Sending mail
I was able to set up pop3 and my students can get and read their email using their POP client. However, they can not send to other host but mine. Below is the error message: The message can not be sent because one of the recipient was rejected by the server Protocol SMTP, server response 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) . Is it due to the fact that I don't do relay? Or is it something else? -- Joel Gatdula Pira Faculty Institute of IT Studies University of Asia and the Pacific Pearl Drive, Ortigas Center, Pasig City
Re: [vmailmgr] Announcements on qmail mailing list?
On Wed, Aug 25, 1999 at 11:31:04AM +0100, [EMAIL PROTECTED] wrote: Hi, I also agree entirely with this. vmailmgrd deserves more recognition and use, the qmail home page description "IP based" wording does need to be improved if possible, because I avoided vmailmgrd for many months thinking it irrelevant to my needs. I don't know if you get a word limit, but "which implements either IP-based or non IP-based virtual domains." perhaps? As for posting announcements to the qmail list, I think definately yes. Again increases awareness, and to be honest (and I get ready for a large amount of backlash on this one!) vmailmgrd is one of the main reasons I've stuck with qmail for so long. Don't get me wrong, I love qmail, but it appears to me (and I hope I'm wrong) that it has queue management issues under high loads and under certain circumstances (when hotmail went down a couple of months ago and had no secondary MX record for instance). In this particular instance I had to create hotmail.com in my own DNS with false MX records in order to bounce the vast backlog of queued email that was slowing down everyone elses mail. (yeah yeah, I know, hotmails fault for only having one MX record, but still...) hotmail's incoming mail is not handled by qmail. Greetz, Peter -- | 'He broke my heart, | Peter van Dijk | I broke his neck' | [EMAIL PROTECTED] | nognikz - As the sun|Hardbeat@ircnet - #cistron/#linux.nl | http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh |
Re: Sending mail
On Wed, Aug 25, 1999 at 04:03:01PM +0800, Joel Gatdula Pira wrote: I was able to set up pop3 and my students can get and read their email using their POP client. However, they can not send to other host but mine. Below is the error message: The message can not be sent because one of the recipient was rejected by the server Protocol SMTP, server response 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) . Is it due to the fact that I don't do relay? See http://www.palomine.net/qmail/relaying.html Chris
Re: why does qmail eat my From headers?
[EMAIL PROTECTED] wrote: Hmm. That is curious. I'm running 1.03, no patches. Is there any way I could have configured qmail to cause this? If not, do you have any suggestions about what could be happening here? Russ Nelson pointed out that fetchmail and sendmail had both had a hand on the example message you posted. Both are notorious header mungers. -Dave
Re: why does qmail eat my From headers?
As 2 others correctly pointed out, qmail-inject with remove and replace your From: header if you have certain options turned on in the QMAILINJECT environment variable. (My oversight earlier.) In addition to the fetchmail and sendmail hosts pointed out, do you have QMAILINJECT set in your environment when invoking qmail-inject and if so, what is it set to? On Tue, 24 Aug 1999 [EMAIL PROTECTED] wrote: Here's the entire message as it comes back to me: = start of message = Return-Path: [EMAIL PROTECTED] Delivery-Date: Wed Aug 25 04:51:01 1999 Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 12860 invoked from network); 25 Aug 1999 04:51:01 - Received: from lyon-183-134.res.iastate.edu ([EMAIL PROTECTED]) by lyon-183-134.res.iastate.edu with SMTP; 25 Aug 1999 04:51:01 - Received: from pop-2.iastate.edu by lyon-183-134.res.iastate.edu with POP3 (fetchmail-5.0.5) for [EMAIL PROTECTED] (single-drop); Tue, 24 Aug 1999 23:51:01 -0500 (CDT) Received: from vladimir.iastate.edu (lyon-183-134.res.iastate.edu [129.186.183.134]) by pop-2.iastate.edu (8.9.3/8.9.3) with SMTP id XAA17901 for [EMAIL PROTECTED]; Tue, 24 Aug 1999 23:50:52 -0500 (CDT) Received: (qmail 12851 invoked by uid 0); 25 Aug 1999 04:50:42 - Date: 25 Aug 1999 04:50:42 - Message-ID: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] X-UIDL: c9145b0842c615664d7a693ebe66b61e = end of message = Does this help? -- J. Uckelman [EMAIL PROTECTED] http://www.public.iastate.edu/~uckelman/ - Timothy L. Mayo mailto:[EMAIL PROTECTED] Senior Systems Administrator localconnect(sm) http://www.localconnect.net/ The National Business Network Inc. http://www.nb.net/ One Monroeville Center, Suite 850 Monroeville, PA 15146 (412) 810- Phone (412) 810-8886 Fax
Re: Sending mail
[EMAIL PROTECTED] wrote: The message can not be sent because one of the recipient was rejected by the server Protocol SMTP, server response 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) . In /var/qmail/control there is a file rcpthosts where you can put the domains you want to send mail. WRONG! That's *RCPT*hosts: hosts you're willing to *receive* mail for. If you delete this file you can send to every host but it'isnt a good idea because everyone can send mail to everyone (you have a relay open). That's an exceedingly bad idea. In www.qmail.org there are some solutions to this problem. See also: http://Web.InfoAve.Net/~dsill/lwq.html#relaying -Dave
Re: tcpserver and qmail-pop3d
man tcpserver No, you don't have to use the -x option to tcpserver. It's up to you. At 03:13 AM 8/25/99 , you wrote: Is there a reason why I have the check of the rules.cdb in my pop3d line of tcpserver other than to slow everything down? Theoretically we allow pop from anywhere (and the rules call on the pop3d line doesn't seem to be preventing anything [but maybe quicker downloads])... /usr/local/bin/tcpserver -c 2050 -x /etc/security/tcprules/rules.cdb 0 pop3 /var/qmail/bin/qmail-popup pop.netzero.net /bin/checkpassword /var/qmail/bin/qmail-popbull /var/spool/bulletins /var/qmail/bin/qmail-pop3d Maildir the above all being on one line of course... Thanks, -- mike b. --- [EMAIL PROTECTED]http://home.sprynet.com/~boyiazis/mikehome.htm "I propose we leave math to the machines and go play outside." Calvin --- NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html __ NovaMetrix Development Robbie Walker, AMWL P.O. Box 635 or910-653-4006 106-B S. Main St 800-773-5647 Tabor City, NC 28463 910-653-2052 FAX
supervise questions
Hi, I'm having problems with supervise and I was hoping someone could offer me some quick advice on how to fix it. I have a machine where syslogd keeps dying so I'm attempting to use supervise to control keeping it up. As root I created the directory /var/run/syslog and ran supervise /var/run/syslog /usr/sbin/syslogd An instance starts up but then I get a whole screen full of syslogd: Already running. messages. When I try to kill it with "svc -d /var/run/syslog" or "svc -k /var/run/syslog" it looks like it kills that instance but then it starts up another and I keep getting the above messages. The only way I found to stop it was to kill the supervise command. I tried it also with named and ended up getting about ten instances of named before I killed it. What am I doing wrong here? thanks for any help -- Matthew Harrell Another Month's End: Bit Twiddlers, Inc. All Targets Met [EMAIL PROTECTED]All Systems Working All Customers Satisfied All Staff Enthusiastic All Pigs Fed And Ready To Fly
Re: supervise questions
Matthew Harrell wrote: created the directory /var/run/syslog and ran supervise /var/run/syslog /usr/sbin/syslogd An instance starts up but then I get a whole screen full of syslogd: Already running. Did you check to see if syslogd was already started from system startup script (/etc/rc or similar). If so, just do # killall syslogd -- Sergei Kolobov
New versions of daemontools (was: supervise questions)
Note that there's a new version of daemontools available: From: "D. J. Bernstein" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: daemontools 0.60 available Date: 25 Aug 1999 02:31:14 - A new version of daemontools is available through http://pobox.com/~djb/daemontools.html Beware that almost the entire interface has changed. ---Dan
Re: supervise questions
: : 1. Check if you can prevent your syslogd from daemonizing; see the manpage. Got it. That didn't even occur to me when I was looking at it. : 2. Check out Dan's new daemontools-0.60 package and see if : : ftp://koobera.math.uic.edu/www/daemontools/fghack.html : :works for you. Will do. Looks like I'm way out of date since I'm only using 0.53. Thanks for the help. -- Matthew Harrell Behind every great computer sits Bit Twiddlers, Inc. a skinny little geek. [EMAIL PROTECTED]
virtualdomain, .qmail and signals
Hi qmail users, I have configured a virtual domain for processing the messages through a filter and then re-send them. I used a classic solution with a .qmail file: virtualdomains: debug:debug .qmail-debug-default: | myfilter | qmail-inject -f "$SENDER" -- "$DEFAULT" This solution works fine but I have some doubts about the behaviour when the filter script (myfilter) finishes unexpectedly. If the script receives a signal (managed or not) that forces it to finish, qmail-inject will simply understand that the message's body has finished and will send a incomplete message. The original body will be lost forever. I explored a solution catching the signal in the script. The signal handler sends a new signal (INT) to finish qmail-inject with a proper error code for showing that the message hasn't been delivered. Now there is my problem: Which is the proper qmail-inject's pid? We can't use the group pid because all qmail processes belongs to qmail-send's group. We can try with parent pid (qmail-inject process is the myfilter's process parent) but if qmail-inject finishes before the script, this could send signals to the "init" (the parent for orphans). Do you have any signal reliable solution ? Thanks in advance for your help, David Jorrin. PD: Please send me a copy by e-mail. Thanks again. David Jorrin [EMAIL PROTECTED] "This chapter is about Laziness, Impatience and Hubris because this chapter is about good software design" Larry Wall, Tom Christiansen Randal L. Schwartz [Programming Perl] Get your free email from AltaVista at http://altavista.iname.com
New daemontools (0.60)
Hi! Somebody know how to change the init script for qmail to use daemontools .60, because they way they work changed a lot...and I'm having trouble moving from the old one. Thanks!..
Re: supervise questions
Matthew Harrell [EMAIL PROTECTED] wrote: : : 2. Check out Dan's new daemontools-0.60 package and see if : : ftp://koobera.math.uic.edu/www/daemontools/fghack.html : :works for you. Will do. Looks like I'm way out of date since I'm only using 0.53. No, 0.60 just came out today, and there was nothing between 0.53 and 0.60. Also, since 0.60 is brand new and quite different, it'll take a while for documentation like "Life with qmail" to catch up. -Dave
Rejecting selected users
Hello! Is it possible to configure qmail to reject mail from selected (outside) users. For example, I have 'kraft-s.ru' domain and I'd like to deny user [EMAIL PROTECTED] to send any messages to our users. Any suggestions? Regards, Dmitry Niqiforoff [tel. +7 8462 427427] Kraft-S, Ltd. Samara, Russia
Re: Rejecting selected users
On Wed, Aug 25, 1999 at 07:19:01PM +0500, Dmitry Niqiforoff wrote: Hello! Is it possible to configure qmail to reject mail from selected (outside) users. For example, I have 'kraft-s.ru' domain and I'd like to deny user [EMAIL PROTECTED] to send any messages to our users. Any suggestions? echo [EMAIL PROTECTED] /var/qmail/control/badmailfrom or, to ban all hotmail.com: echo @hotmail.com /var/qmail/control/badmailfrom Greetz, Peter -- | 'He broke my heart, | Peter van Dijk | I broke his neck' | [EMAIL PROTECTED] | nognikz - As the sun|Hardbeat@ircnet - #cistron/#linux.nl | http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh |
Re: Rejecting selected users
Dmitry Niqiforoff [EMAIL PROTECTED] wrote: Is it possible to configure qmail to reject mail from selected (outside) users. For example, I have 'kraft-s.ru' domain and I'd like to deny user [EMAIL PROTECTED] to send any messages to our users. Any suggestions? Yes, see: http://Web.InfoAve.Net/~dsill/lwq.html#badmailfrom -Dave
Re: Modifying the queue: what is safe ?
On Wed, 25 Aug 1999, Peter van Dijk wrote: [snip] Removing messages from under qmail-send's ass should not give any problems theoretically, just lots of warnings in the logs. kill -9 qmail-send IS a bad thing tho.. you should always just kill qmail-send and _wait_ for it to exit. If you're in a hurry, and want qmail-send to exit quickly, kill all the qmail-remote processes after you kill qmail-send (as Peter notes, don't use -9). You may get a few duplicate messages doing this. Your choice whether it's that urgent to shut it down quickly. Greetz, Peter -- | 'He broke my heart, | Peter van Dijk | I broke his neck' | [EMAIL PROTECTED] | nognikz - As the sun|Hardbeat@ircnet - #cistron/#linux.nl | http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh | -- "Life is much too important to be taken seriously." Thomas Erskine[EMAIL PROTECTED](613) 998-2836
Re: Modifying the queue: what is safe ?
On Wed, Aug 25, 1999 at 10:25:32AM -0400, [EMAIL PROTECTED] wrote: On Wed, 25 Aug 1999, Peter van Dijk wrote: [snip] Removing messages from under qmail-send's ass should not give any problems theoretically, just lots of warnings in the logs. kill -9 qmail-send IS a bad thing tho.. you should always just kill qmail-send and _wait_ for it to exit. If you're in a hurry, and want qmail-send to exit quickly, kill all the qmail-remote processes after you kill qmail-send (as Peter notes, don't use -9). You may get a few duplicate messages doing this. Your choice whether it's that urgent to shut it down quickly. Actually, I do that all the time... I hate waiting for a timeout when I can just 'killall qmail-remote'. Just didn't want to tell y'all because it's theoretically bad :) Greetz, Peter -- | 'He broke my heart, | Peter van Dijk | I broke his neck' | [EMAIL PROTECTED] | nognikz - As the sun|Hardbeat@ircnet - #cistron/#linux.nl | http://www.nognikz.mdk.nu/ | Hardbeat@undernet - #groningen/#kinkfm/#vdh |
Re: Modifying the queue: what is safe ?
Peter van Dijk writes: ] kill -9 qmail-send IS a bad thing tho.. Well, isn't it what would happen at shutdown if qmail-send takes to much time to exit after the SIGTERM ? On most systems I know of, shutdown sends a SIGKILL (signal 9) to all processes a measly 5 seconds after sending them SIGTERM. -- | Martin Ouwehand ~ Swiss Federal Institute of Technology ~ Lausanne __|_ Email/PGP: http://slwww.epfl.ch/SIC/SL/info/Martin.html __ We have the technology not available before... But thinkers poets of the past, oh no, they had to leap in the dark so blindly[Père Ubu]
RE: Sending mail
Title: RE: Sending mail [EMAIL PROTECTED] wrote: In /var/qmail/control there is a file rcpthosts where you can put the domains you want to send mail. WRONG! That's *RCPT*hosts: hosts you're willing to *receive* mail for. Misleading. The rcpthosts file dictates what domains are valid in a RCPT TO smtp line. This means two things. 1) Outside SMTP servers and users, when connecting to your smtpd, can only RCPT TO: specific domains. (read: no spam relaying) 2) INSIDE users can only RCPT TO: specific domains. (read: no sending mail to anyone outside your own trusted network) There is, of course, a reconciliation between these two worlds that works quite amiably, using tcpserver and some environment variables, which is outlined well in many posts to this list and in common Qmail docs. If you delete this file you can send to every host but it'isnt a good idea because everyone can send mail to everyone (you have a relay open). That's an exceedingly bad idea. I concur. Look on qmail.org under allowing selective relaying or some such to get around your problem in a good fashion. Bill Johnson
How to filter passing messages with procmail ..?
Hi, I would like to use procmail with qmail for the following purposes : I'm using qmail only for relaying mail messages. [ thus no local mail users are exist, except the postmaster and some test users ] I would like to use procmail to filter the incoming [ actually passing ] mails and do different things with certain messages. How to spawn procmail to "catch" incoming messages as it only starts when a local delivery happens. Is procmail/qmail able to handle this ? ( i guess it is ) Thanks in advance, pH
qmail-pw2u doesn't work.
When I run qmailpw-2u, it just sits there doing nothing, I have to CTRL-C it to get back to the prompt, and it never modifies the assign file. Suggestions please? -hawke
Re: qmail-pw2u doesn't work.
"Hawke Robinson" [EMAIL PROTECTED] wrote: When I run qmailpw-2u, it just sits there doing nothing, I have to CTRL-C it to get back to the prompt, and it never modifies the assign file. Suggestions please? qmail-pw2u operates on standard input and output, so do something like: qmail-pw2u /etc/passwd assign -Dave
Re: why does qmail eat my From headers?
[EMAIL PROTECTED] wrote: Hmm. That is curious. I'm running 1.03, no patches. Is there any way I could have configured qmail to cause this? If not, do you have any suggestions about what could be happening here? Russ Nelson pointed out that fetchmail and sendmail had both had a hand on the example message you posted. Both are notorious header mungers. -Dave As you can see, it works now. Thanks, everyone, for the help. It appears that setting QMAILINJECT to 'f' solved the problem. As for what was actually the cause, I'm certain it wasn't fetchmail -- when I sent the same message to my roommate, the result was the same, despite that he uses Eudora. Secondly, everyone else's From's seem to be ok. I would be very strange if fetchmail altered my From's and no others. Again, thanks much for the help!
SQWebmail....compilation problems...(0.20)
Hi, I'm sorry if this is out of the limits of the list, but I couldn't find any list for SQWebmail... After I ran the .configure like this: ./configure --with-vchkpw=yes --enable-maxpurge=30 --with-htmllibdir=/mail/webmail --enable-cgibindir=/usr/local/apache/cgi-bin --enable-hostname=webmail --enable-bannerprog=prog --with-maxargsize=100 -with-maxformargsize=100 (I had to take out some parameters, if not, it wouldn't take it). Is sqwebmail checking for ispell in /usr/local/bin???. I ran: # make make all-recursive Making all in maildir gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildircreate.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildircreateh.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildirgetquota.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildirparsequota.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildirquota.c gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c maildirrequota.c rm -f libmaildir.a ar cru libmaildir.a maildircreate.o maildircreateh.o maildirgetquota.o maildirparsequota.o maildirquota.o maildirrequota.o ranlib libmaildir.a gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -c deliverquota.c gcc -g -O2 -Wall -o deliverquota deliverquota.o libmaildir.a ./html2man.pl deliverquota.html deliverquota.8 sh: ./html2man.pl: not found *** Error code 1 make: Fatal error: Command failed for target `deliverquota.8' Current working directory /root/pkgs/mail_server/sqwebmail-0.20/maildir *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /root/pkgs/mail_server/sqwebmail-0.20 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' And got this. Any idea?. It seems that html2man.pl is not there... but it is.:((( Many thanks in advance!!!
Qmail relay.
Hi! Is it possible to configure qmail to send relay messages to more than one destination? We have two identical internal mail servers (behind fw), and we've got qmail machines (on a dmz) as relays. We want qmail to send every relayed email to both internal servers, instead of one of them. Is it possible? Thanks, -- Windows isn't a virus, viruses do something ... Stefan Krantz / [EMAIL PROTECTED] 4096/1024 Diffie-Hellman/DSS KeyID: 0x889714FD Fingerprint: 2DDB CB46 CC22 C6EA BEC5 4ABD CC07 9A37 8897 14FD
Performance hack
Attached is a small performance hack to qmail-remote. It simply disables the delayed ack for tcp connections. Speeds the beginning of the data transfer phase up by about 0.5 seconds. The effect is a little bit depending on your platform. On FreeBSD it almost doubles the number of messages that can be sent in a certain amount of time (in my test environment). It helps most if you have lots of small messages. Got the TCP-NODELAY tip from a different discussion on the FreeBSD ML and the conclusion there was that it helps most on *BSD, Solaris and basically all other unices exept Linux. I have no idea why that and it doesn't really matter because in this aspect Linux is also fine w/o this optimization (well, it doesn't hurt, the gain is just not so high). I'd like to see how much it speeds huge mailing lists up (I don't have huge ML). This will be also included in next qmail-ldap. -- Andre % cvs diff -u -r1.1 qmail-remote.c Index: qmail-remote.c === RCS file: /usr/home/opi/CVS/qmail-ldap/qmail-remote.c,v retrieving revision 1.1 retrieving revision 1.3 diff -u -r1.1 -r1.3 --- qmail-remote.c 1999/03/23 19:40:09 1.1 +++ qmail-remote.c 1999/08/25 17:59:28 1.3 @@ -1,6 +1,7 @@ #include sys/types.h #include sys/socket.h #include netinet/in.h +#include netinet/tcp.h #include arpa/inet.h #include "sig.h" #include "stralloc.h" @@ -413,6 +414,9 @@ smtpfd = socket(AF_INET,SOCK_STREAM,0); if (smtpfd == -1) temp_oserr(); + +/* performace hack to send TCP ACK's without delay */ +setsockopt(smtpfd, IPPROTO_TCP, TCP_NODELAY, smtpfd, sizeof smtpfd); if (timeoutconn(smtpfd,ip.ix[i].ip,(unsigned int) port,timeoutconnect) == 0) { tcpto_err(ip.ix[i].ip,0);
ezmlm/qmail sending multiple copies??
Hi, I have an interesting problem. I have a client using ezmlm to email about 15,000 subscribers on a weekly basis. This is the second week they sent their email. The first week went fine, logs showed everyone received their email. Second week many ppl got this weeks, and a copy of last weeks. Logs showed everyone was sent, and received, _one_ email. I am using qmailanalog to parse the maillog. Where else can I look for any logs, or why else might this happen? They are considering sending an explanation to the list, but obviously they dont want copies of all three messages going out again. Any help is much appreciated. Ted Cekan
sendmail style virtual domains
In sendmail 8.9 I can use the following line in sendmail Virtual Domains domain.com:$1@otherdomain.com This would basically redirect the mail from the first domain for the user to the user account at the other domain that I want it forwarded to. In browsing through the qmail docutmentation I do not see anything to do that. Can someone just point me in the right direction for how to do this. Thank you very much... -Eric Davis [EMAIL PROTECTED]
Re: sendmail style virtual domains
[EMAIL PROTECTED] wrote: In sendmail 8.9 I can use the following line in sendmail Virtual Domains domain.com:$1@otherdomain.com This would basically redirect the mail from the first domain for the user to the user account at the other domain that I want it forwarded to. In browsing through the qmail docutmentation I do not see anything to do that. Add domain.com to rcpthosts and put the following in smtproutes: domain.com:otherdomain.com -Dave
Re: sendmail style virtual domains
At 2:14 pm -0400 25/8/99,the wonderful Eric Davis wrote: In sendmail 8.9 I can use the following line in sendmail Virtual Domains domain.com:$1@otherdomain.com This would basically redirect the mail from the first domain for the user to the user account at the other domain that I want it forwarded to. In browsing through the qmail docutmentation I do not see anything to do that. deliver it to a .qmail file and put this in the file: | forward "$DEFAULT"@otherdomain.com peter -- peter at gradwell dot com; http://www.gradwell.com/ gradwell dot com Ltd. Enabling the internet you don't see.
hmm.. is this right?
I'm getting a lot of bounces to postmaster from some dumb mail client that isn't setting the To: or From: headers. I tested this out: telnet localhost 25 MAIL FROM: RCPT TO: DATA blah . qmail-smtpd accepts that, and then delivers a double bounce to postmaster. I'd rather it just not accept the mail in the first place. In this particular case, the dumb client is one of our customers, so I can go yell at them, but I'm kinda curious as to how this should be handled. Is there something obvious I'm missing here? shag = Judd Bourgeois| CNM Network +1 (805) 520-7170 Software Architect| 1900 Los Angeles Avenue, 2nd Floor [EMAIL PROTECTED] | Simi Valley, CA 93065 Quidquid latine dictum sit, altum viditur.
RE: hmm.. is this right?
I'm getting a lot of bounces to postmaster from some dumb mail client that isn't setting the To: or From: headers. I tested this out: telnet localhost 25 MAIL FROM: RCPT TO: I can't speak to the "RCPT TO", but "MAIL FROM: " is legal and is the method RFC 821 suggests to keep bounces from bouncing: "Section 3.6: ... This notification message must be from the server-SMTP at this host. Of course, server-SMTPs should not send notification messages about problems with notification messages. One way to prevent loops in error reporting is to specify a null reverse-path in the MAIL command of a notification message. When such a message is relayed it is permissible to leave the reverse-path null. A MAIL command with a null reverse-path appears as follows: MAIL FROM:" Some sites have started disallowing this as an anti-SPAM measure. Personally I think that is more trouble than it is worth. -- gowen -- Greg Owen -- [EMAIL PROTECTED]
Re: hmm.. is this right?
Quoting Racer X ([EMAIL PROTECTED]): I'm getting a lot of bounces to postmaster from some dumb mail client that isn't setting the To: or From: headers. I tested this out: telnet localhost 25 MAIL FROM: RCPT TO: DATA blah . qmail-smtpd accepts that, and then delivers a double bounce to postmaster. I'd rather it just not accept the mail in the first place. In this particular case, the dumb client is one of our customers, so I can go yell at them, but I'm kinda curious as to how this should be handled. Is there something obvious I'm missing here? When I try this, no message is delivered at all, as evidenced by the mail log: 935615243.553990 info msg 153782: bytes 184 from qp 12805 uid 51 935615243.571528 starting delivery 600332: msg 153782 to local @cois.coinet.com 935615243.571639 status: local 1/30 remote 0/45 935615243.803298 delivery 600332: success: Aaron
Re: Performance hack
Oh well, I'm a little bit stupid today... Forgot to check the real patch into cvs. This is the actual working patch I used for my tests: % cvs diff -u -r1.1 qmail-remote.c Index: qmail-remote.c === RCS file: /usr/home/opi/CVS/qmail-ldap/qmail-remote.c,v retrieving revision 1.1 retrieving revision 1.4 diff -u -r1.1 -r1.4 --- qmail-remote.c 1999/03/23 19:40:09 1.1 +++ qmail-remote.c 1999/08/25 21:32:28 1.4 @@ -1,6 +1,7 @@ #include sys/types.h #include sys/socket.h #include netinet/in.h +#include netinet/tcp.h #include arpa/inet.h #include "sig.h" #include "stralloc.h" @@ -332,6 +333,7 @@ { static ipalloc ip = {0}; int i; + int tcpnodelay = 1; unsigned long random; char **recips; unsigned long prefme; @@ -413,6 +415,9 @@ smtpfd = socket(AF_INET,SOCK_STREAM,0); if (smtpfd == -1) temp_oserr(); + +/* performace hack to send TCP ACK's without delay */ +setsockopt(smtpfd, IPPROTO_TCP, TCP_NODELAY, tcpnodelay, sizeof tcpnodelay); if (timeoutconn(smtpfd,ip.ix[i].ip,(unsigned int) port,timeoutconnect) == 0) { tcpto_err(ip.ix[i].ip,0);
Re: Patched source for pine 4.1 w/ Maildir support
Text written by James Smallacombe at 04:13 PM 8/21/99 -0400: After a coupla days of screwing around and a pointer from Ragnar Kjorstad, I finally got the various patches to work with pine 4.1. If Russ still wants to put it up on the qmail site, or if anybody else wants to check it out, the patched source is at: http://3.am/pine4.10.maildir.tar.gz It builds and runs fine under FreeBSD 3.2 (-bsf) and Solaris 2.6 with gcc 2.8.1 (-gs5) Well, it also compiles and builds fine under Red Hat LInux (version 5.1, 2.0.34 kernel). It runs, too, and reads my old mail and sends new mail just fine. One thing I can't seem to get it to do is read the Maildir. I've tried setting the inbox-path config variable to /home/kmactane/Maildir, ~/Maildir, ~/Maildir/, ./Maildir, ./Maildir/, ~/Maildir/new, and ~/Maildir/new/. For each one, I get the message "Can't open directory: not a selectable folder" when I try to open INBOX. Any ideas? - Kai MacTane System Administrator Online Partners.com, Inc. - From the Jargon File: (v4.0.0, 25 Jul 1996) fix /n.,v./ What one does when a problem has been reported too many times to be ignored.
Re: Qmail relay.
On Wed, Aug 25, 1999 at 07:45:47PM +0200, Stefan Krantz wrote: We have two identical internal mail servers (behind fw), and we've got qmail machines (on a dmz) as relays. We want qmail to send every relayed email to both internal servers, instead of one of them. Is it possible? Maybe you could enter the two internals in smtproutes (man qmail-remote) like this: :first.server.com :secnd.server.com Regards Mirko
Re: Qmail relay.
Pardon me, of course it should better be sth. like this: your-domain.com:first.your-domain.com your-domain.com:secnd.your-domain.com Regards Mirko
Qmail dying
Qmail keeps dying completely, leaving no qmail processes running, or partly dying where the processes look fine, but no mail is sent remotely. The logs show nothing out of the ordinary, and just stop when it stops. Can someone tell me what steps to take to find out what's causing this? -- Fred Jones IAJ Systems Administrator [EMAIL PROTECTED] ___ Get Free Email and Do More On The Web. Visit http://www.msn.com
Re: Qmail dying
Fred Jones writes: Qmail keeps dying completely, leaving no qmail processes running, or partly dying where the processes look fine, but no mail is sent remotely. The logs show nothing out of the ordinary, and just stop when it stops. Can someone tell me what steps to take to find out what's causing this? Attach strace to all processes. Redirect their output somewhere where you have plenty of disk space. Wait for them to die. -- Sam
How do I route email?? smtproute??
Hi I had a spamming problem and there is a host that could not be protected so I block all smtp traffic to that server. Problem is that the server could not received emails, so I set qmail on my serverA so that it will receive emails for serverB. How do I route all emails to that serverB using qmail?? I already put a MX pointing to serverA to receive email for serverB. Is there a way?? Thanks for being patience with me Kayleigh
Question on big-todo patch
Hi, My todo directory has grown to around 7000 files and I am considering using the big-todo patch. I have never used it Do I just stop qmail, apply the patch and reinstall or do I have to munge the queue. If I have to munge the queue, what is the magic incantation to keep exisiting messages safe Cheers, Yusuf -- Yusuf Goolamabbas [EMAIL PROTECTED]
Re: .deb installation anyone?
Hi all, I am sure this is a FAQ, so if there is a FAQ please just point me to it, but can anyone point me towards a .deb installation of qmail somewhere? There is a qmail-src 1.03 in potato (unstable) (I think 1.02 in slink / Debian 2.1). Just do a 'apt-get install qmail-src', 'build-qmail' which builds the qmail package and then 'dpkg -i qmail' (it's in a tmp directory). It shouldn't be a problem to use qmail-src 1.03 from potato with slink. You could also fetch the file by hand and do a 'dpkg -i qmail-src_1.03-?.deb. Then you could edit the /etc/init.d/qmail file, because the default is to use procmail for local delivery. I prefer ./Maildirs and if you use them, you should also use the qmail-pop3d. There is a line you could comment out in init.d/qmail to start the qmail-pop3d. Oliver Oliver
how to use mess822
hi,all Would you pleasetell me: How tostart ofmipd ( mess822 ) at boot ? thanks wen