RE: remote users sending mail prob
This is EXACTLY what I want to do too! But right now my mailserver is STILL an OPEN RELAY. Can someone please help me fix it? /Michael Boman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 November, 1999 17:18 PM To: Qmail List Subject: re: remote users sending mail prob I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. example: member calls their isp.. (they don't have a perminent isp.. they have multiple internet accountsmove around..) their mail account here is [EMAIL PROTECTED] they have my mailserver as their mail server mail.kat.net.au they can pick up their mail but when they try to send mail their mailer reports that : the message could not be sent because the recipient was rejected by the server .. protocol smtp server responce 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) port 25 secure (ssl) no server error 553 error number Ox800ccc79 however i can send a message to the same account which they are trying to send to from here (local machine) without any problems
AW: remote users sending mail prob
So you have two ways: First the bad way: Kill your rcpthosts which will cause your server to be an open relay. A variation of this is checking the sender address (see qmail.org for this patch) which is easy to fake, so your an open relay again. Second the good way: Apply one of the packages on qmail.org which allow smtp-connections after an authentication over pop3. That's the way most mass providers like gmx go. The pop3-connection saves the ip and you're allowed to send mails for a certain time. Third the other good way: Patch your qmail-smtpd to allow authentication over esmtp. There's a package on qmail.org you'll have to use in combination with a checkpassword program. If you use this, you need to use a MUA which supports this smtp-authentication (like outlook, netscape). Just have a look on www.qmail.org CU Holger -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. November 1999 10:18 An: Qmail List Betreff: re: remote users sending mail prob I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. example: member calls their isp.. (they don't have a perminent isp.. they have multiple internet accountsmove around..) their mail account here is [EMAIL PROTECTED] they have my mailserver as their mail server mail.kat.net.au they can pick up their mail but when they try to send mail their mailer reports that : the message could not be sent because the recipient was rejected by the server .. protocol smtp server responce 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) port 25 secure (ssl) no server error 553 error number Ox800ccc79 however i can send a message to the same account which they are trying to send to from here (local machine) without any problems
AW: remote users sending mail prob
Just look on www.qmail.org for Mrs. Brisby has written a user/password based authentication mechanism for qmail-smtpd. This lets your microsoft's outlook express supports (outgoing mail server user name) and netscape 4.5 (and above-betas) users securely roam. Users can use a slightly modified version of their own checkpassword.c program as outlined in my own vchkpw.c that I use. Also, two very simple perl scripts to perform pop3-based authentication for qmail. or see my last mail CU Holger -Ursprüngliche Nachricht- Von: Michael Boman [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. November 1999 10:30 An: [EMAIL PROTECTED]; Qmail List Betreff: RE: remote users sending mail prob This is EXACTLY what I want to do too! But right now my mailserver is STILL an OPEN RELAY. Can someone please help me fix it? /Michael Boman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 November, 1999 17:18 PM To: Qmail List Subject: re: remote users sending mail prob I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. example: member calls their isp.. (they don't have a perminent isp.. they have multiple internet accountsmove around..) their mail account here is [EMAIL PROTECTED] they have my mailserver as their mail server mail.kat.net.au they can pick up their mail but when they try to send mail their mailer reports that : the message could not be sent because the recipient was rejected by the server .. protocol smtp server responce 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) port 25 secure (ssl) no server error 553 error number Ox800ccc79 however i can send a message to the same account which they are trying to send to from here (local machine) without any problems
qmail Digest 23 Nov 1999 11:00:00 -0000 Issue 828
qmail Digest 23 Nov 1999 11:00:00 - Issue 828 Topics (messages 33421 through 33486): MX question related to diff. A and MX record 33421 by: Einar Bordewich 33423 by: Sam 33425 by: Einar Bordewich 33428 by: Russell Nelson 33461 by: Sam Re: what _should_ I call our internal domain? 33422 by: olli missing mail 33424 by: Süddeutsche Krankenversicherung 33426 by: Petr Novotny Re: Limiting incoming connections 33427 by: Mark Evans 33432 by: Rohit Khamkar 33434 by: Häffelin Holger 33444 by: Steve Kapinos Configuration problem 33429 by: Rohit Khamkar 33430 by: Steve Kapinos Re: Sending Through other Mail Server ! 33431 by: cmikk.uswest.net New Config. problem 33433 by: Rohit Khamkar 33435 by: Dave Sill Problems installing the package from moni.msci.memphis.edu 33436 by: Diego M. López 33437 by: Diego M. López 33443 by: Steve Kapinos Re: Can anyone help with selective relaying/rcpthosts problem? 33438 by: Rob Havens Relaying based on mail size ! 33439 by: Seyyed Hamid Reza Hashemi Golpayegani 33449 by: Häffelin Holger 33450 by: Jon Rust deferral - how long ? 33440 by: John P. Looney 33441 by: John P. Looney 33446 by: James Raftery 33448 by: Bill Parker Re: LWQ translators wanted 33442 by: Steve Vertigan Outlook 5 and online check 33445 by: Jon Rust 33456 by: Russell Nelson dot file question 33447 by: Tom Fishwick 33451 by: Häffelin Holger Qmail doc central?? 33452 by: Subba Rao 33454 by: Häffelin Holger Mailbox and atime 33453 by: Phil Howard problems with procmail 33455 by: Luis Bezerra How to slash off really long body messages when bouncing and/or double-bouncing 33457 by: Daniel Mattos Re: disk mirroring 33458 by: John White 33463 by: Florian G. Pflug 33466 by: Racer X 33467 by: Adam D . McKenna 33469 by: John White 33470 by: John White Serialmail 33459 by: Jose de Leon 33460 by: Eric Dahnke straynewline, patch found. 33462 by: Michael Boyiazis Need advice... 33464 by: Barton Hodges 33468 by: m.wut.org Remote users not able to send messages anywhere but here 33465 by: Cameron Arnott 33481 by: Chris Johnson forwarding mails arlready in Maildirs 33471 by: Marlon Anthony Abao 33473 by: Benjamin de los Angeles Jr. 33474 by: Marlon Anthony Abao 33475 by: Andy Bradford 33476 by: mabrown.securepipe.com 33477 by: Marlon Anthony Abao Help! I am still a open relay!! 33472 by: Michael Boman 33480 by: Chris Johnson ANNOUNCE: Native Qmail-based virus scanner - scan4virus-0.1 33478 by: Jason Haar 33482 by: Jason Haar LWQ qmail rc script addition 33479 by: Peter Cavender Re: remote users sending mail prob 33483 by: Cameron Arnott 33484 by: Michael Boman 33485 by: Häffelin Holger 33486 by: Häffelin Holger 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] -- Does a mailserver always look at the MX record, and not the A record for a domain? Back a few years, I know we had a problem related to mail going to the webserver instead the mailserver, when the domain was set up with an A record that was different than the IP address of the hostname pointed to by MX. Does this still count, or is this a solved issue? ex. zone config where a http request will go to test.com/192.168.1.1 and mail to test.com will go to mail.test.com/10.10.10.10 ; Zone file for: test.com @ IN SOA ns.domain.com. hostmaster.domain.com. ( 1999112214 ; serial number 28800 ; refresh 7200; retry 604800 ; expire 86400 ) ; minimum TTL ; NS records @ IN NS ns.domain.com. @ IN NS ns1.domain.com. @ IN NS nn.domain.net. ; MX records @ IN MX 10 mail.test.com. @ IN MX 20 mail1.domain.com. ; Zone records @ IN A 192.168.1.1 mailIN A 10.10.10.10 www IN CNAME www.domain.com. BTW: test.com and domain.com in this example has nothing to do with the real domains out there. --
Re: ANNOUNCE: Native Qmail-based virus scanner - scan4virus-0.1
I have tried the patch using the following command: patch -p0 scan4virus-0.11.patch but if fails. Do I need scan4virus-0.11 ? Where to get it? Regards Deon
Re: remote users sending mail prob
On Tue, Nov 23, 1999 at 07:17:38PM +1000, Cameron Arnott wrote: I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. Why do they need to be able to send mail through your SMTP server, as opposed to their ISPs' SMTP servers? Have them configure their mail clients to use their respective ISPs' SMTP servers to relay their mail. Only *very* rarely, if ever, will this be a problem. Chris
Re: Help! I am still a open relay!!
have you tried running tcprulescheck against you smtp.cdb file? If not do so it is very helpful in debuggiing problems. do a man on tcprules syntax Brian Michael Boman wrote: I have been following the instructions in http://qmail-docs.surfdirect.com.au/docs/qmail-antirelay.html but it seems like I am still an open relay! What is wrong?! What I want to do is allow any user on my C-net / LAN to send mail thru the SMTP server without any limitations, and the world only send/recive mails either to or from a @company address. LOCALHOST: can send as who-ever@what-ever to anyone@anyhost LAN: can send as who-ever@what-ever to anyone@anyhost OUR C-NET: can send as who-ever@what-ever to anyone@anyhost WORLD: can send as user@company to anyone@anyhost Best regards, Michael Boman PS The files: # cat /var/qmail/control/rcpthosts intsys.wizoffice.com intsys.wizoffice.com.sg localhost webmail.intsys.wizoffice.com webmail.intsys.wizoffice.com.sg webmail.wizoffice.com webmail.wizoffice.com.sg wizoffice.com wizoffice.com.sg # cat /etc/tcp.smtp 192.168.2.:allow,RELAYCLIENT="" 10.1.:allow,RELAYCLIENT="" 127.:allow,RELAYCLIENT="" 203.117.18.:allow,RELAYCLIENT="" :allow I made the /etc/tcp.smtp.cdb file using following command: # cat /etc/tcp.smtp | tcprules /etc/tcp.smtp.cdb ~/tcp.smtp.tmp I am running tcpserver with following syntrax: tcpserver -v -H -R -x/etc/tcp.smtp.cdb -c 100 -u 1001 -g 101 0 smtp /var/qmail/bin/qmail-smtpd | /var/qmail/bin/splogger smtpd 3 DS -- Michael Boman, Systems Engineer WizOffice.Com Pte Ltd - 16 Tannery Lane, #06-00 Crystal Time Building, Singapore. 347778 Your Online Office Wizard - http://www.wizoffice.com/
Re: problems with procmail
[EMAIL PROTECTED] wrote: !doctype html public "-//w3c//dtd html 4.0 transitional//en" html Hello everyone, brnbsp; etc. Try posting that in plain text, and you might get a response. -Dave
Re: Help! I am still a open relay!!
On Tue, Nov 23, 1999 at 11:23:26AM +0800, Michael Boman wrote: I am running tcpserver with following syntrax: tcpserver -v -H -R -x/etc/tcp.smtp.cdb -c 100 -u 1001 -g 101 0 smtp /var/qmail/bin/qmail-smtpd | /var/qmail/bin/splogger smtpd 3 This won't direct STDERR to splogger. You'll miss any tcpserver error messages. Direct STDERR, and see if tcpserver give you any clues. Regards, james -- James Raftery (JBR54) - Programmer Hostmaster IE Domain Registry Preferred Contact by Email: [EMAIL PROTECTED] UCD Computing Services Web: http://www.domainregistry.ie/ Computer Centre Tel: (+353 1) 7062375 Fax: (+353 1) 7062862 Belfield, Dublin 4, IE
Re: Problems installing the package from moni.msci.memphis.edu
It is not going to work: you are using qmail-pop3d but try to deliver with procmail. You want to use maildrop instead of procmail because maildrop can deliver to maildir. On the qmail list, people will give you a pointer where you can get maildrop (perhaps Sam could put a URL tag in the maildrop rpm, so then I could just do `rpm -qi maildrop' to look up the download info.) Also, you did not properly read the doc coming with the qmail rpm. Otherwise, you would not have talked about the scripts in /var/qmail/boot. Please do not send multiple copies of your message to a mailinglist; it is not going to speed up responses. If anything, the annoyance will turn people away from responding. The time is better spent on describing what you are trying to do. For example, we could just guess that you are trying to pick up mail via pop. Mate
POP3 and Virtual email performance?
I'm running qmail 1.03 on a RH 6.0 box with kernel 2.2.12 on Pentium 133 with 64 megs of RAM. The performance of sending and receiving mail for some users is great and for others it's slower then dirt. What I'm looking for is some general performance enhancments (config settings, fs settings, etc.) to speed up the sending and checking of mail. The problem does seem to be worse on the qpop side of things. There are only about 50 users on the box right now so things shouldn't be slowing down at all. Thanks Derek
Re: AutoTURN startup script
Ricardo Cerqueira wrote: /usr/local/bin/tcpserver -c55 -v -x/etc/tcp.smtp.cdb -u 7791 -g 2108 0 smtp \ sh -c ' /usr/local/qmail/bin/qmail-smtpd cd /usr/local/qmail/autoturn exec setlock -nx $TCPREMOTEIP/seriallock \ maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN 21 | splogger etrn ' Change this line like the above. Regards; Ricardo Hi: Thanks for the answer. Unfortunately, it still doesn't work. Since I use daemontools instead of syslog, I just substituted the "splogger etrn" part in your script by a call to accustamp / cyclog: /usr/local/bin/tcpserver -c55 -v -x/etc/tcp.smtp.cdb -u 7791 -g 2108 0 smtp \ sh -c ' /usr/local/qmail/bin/qmail-smtpd cd /usr/local/qmail/autoturn exec setlock -nx $TCPREMOTEIP/seriallock \ maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN 21 | \ /usr/local/bin/accustamp | /usr/local/bin/setuser root /usr/local/bin/cyclog -n12 /var/log/qmail-receive ' After doing this, the output of tcpserver and qmail-smtpd still go to the screen. I also tried to add all the log commands (accustamp, setuser, cyclog, etc.) after the qmail-smtpd invocation in the shell script: sh -c ' /usr/local/qmail/bin/qmail-smtpd 21 | /usr/local/bin/accustamp | /usr/local/bin/setuser root /usr/local/bin/cyclog -n12 /var/log/qmail-receive With no effect. What am I doing wrong here? Paulo Jan. DDnet.
[Q] Sorry, no mailbox here by that name. (#5.1.1) ???
Hi all~ I just have installed qmail-1.03 at my RedHat 6.0 system. But I can reveive mails. The following is a example of returned mail. What's the problem? -- Hi. This is the qmail-send program at mail.webro.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: [EMAIL PROTECTED] Received: (qmail 27390 invoked by uid 0); 23 Nov 1999 17:01:55 - Date: 23 Nov 1999 17:01:48 - Message-ID: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Cc: recipient list not shown: ; Subject: mail5
RE: remote users sending mail prob
Except when it comes to supporting these clients.. Its much easier to simply say 'call me only if you can not get your email but you can get to the web', 'if you can't get to the web, call your ISP tech support'. I have this same setup, and I use smtp-after-pop3 method of selective relaying. Its easy to implement by patching checkpassword with Russell's open-smtp patch. It should be on the qmail web page. -Steve -Original Message- From: Chris Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 23, 1999 7:44 AM To: Cameron Arnott Cc: Qmail List Subject: Re: remote users sending mail prob On Tue, Nov 23, 1999 at 07:17:38PM +1000, Cameron Arnott wrote: I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. Why do they need to be able to send mail through your SMTP server, as opposed to their ISPs' SMTP servers? Have them configure their mail clients to use their respective ISPs' SMTP servers to relay their mail. Only *very* rarely, if ever, will this be a problem. Chris
AW: [Q] Sorry, no mailbox here by that name. (#5.1.1) ???
With this I just can say, you have ezmlm running and [EMAIL PROTECTED] is member of a list, but QMail can't deliver mail to it. I suppose that's not what you expected ?! Some more information (config files, ...) would be good. CU Holger -Ursprüngliche Nachricht- Von: ¹è¼º½Ä [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 23. November 1999 19:31 An: [EMAIL PROTECTED] Betreff: [Q] Sorry, no mailbox here by that name. (#5.1.1) ??? Hi all~ I just have installed qmail-1.03 at my RedHat 6.0 system. But I can reveive mails. The following is a example of returned mail. What's the problem? -- Hi. This is the qmail-send program at mail.webro.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: [EMAIL PROTECTED] Received: (qmail 27390 invoked by uid 0); 23 Nov 1999 17:01:55 - Date: 23 Nov 1999 17:01:48 - Message-ID: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Cc: recipient list not shown: ; Subject: mail5
RE: remote users sending mail prob
You can use the open-smtp patch from Russell Nelson that allows any IP that authenticates through Pop3 to relay through you for a certain period of time. Works by patching checkpassword and using tcpserver. Look on www.qmail.org for open-smtp -Steve -Original Message- From: Michael Boman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 23, 1999 4:30 AM To: [EMAIL PROTECTED]; Qmail List Subject: RE: remote users sending mail prob This is EXACTLY what I want to do too! But right now my mailserver is STILL an OPEN RELAY. Can someone please help me fix it? /Michael Boman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 November, 1999 17:18 PM To: Qmail List Subject: re: remote users sending mail prob I've read the docs on relaying but still can't get it to work My members can be anywhere in the world.. and use various isp's , but they have an email account here. I want them (the people who have email accounts here) to be able to send email through here as this is their mailserver and block everyone else.. example: member calls their isp.. (they don't have a perminent isp.. they have multiple internet accountsmove around..) their mail account here is [EMAIL PROTECTED] they have my mailserver as their mail server mail.kat.net.au they can pick up their mail but when they try to send mail their mailer reports that : the message could not be sent because the recipient was rejected by the server .. protocol smtp server responce 553 sorry that domain isn't in my list of allowed rcpthosts (#5.7.1) port 25 secure (ssl) no server error 553 error number Ox800ccc79 however i can send a message to the same account which they are trying to send to from here (local machine) without any problems
Problem retrieving certain emails
Hi, I have a qmail server providng services to a small isp (~700 users) using user maildirs Occaisionally, I'll get a user complaint that their email client (Netscape, eudora, Outlook) will hang on "Downloading message X of Y" If I move the offending message out of the Maildir/new directory, the user is able to download the rest of the messages no problem. Once when this problem was happening to several users on the same Mailing list, the offending email had a control-k imbedded in it that the email clients would puke on when down loading it. Often the email contain binary attachments and are usually large (200 Kb) but I don't know why that would be a problem. It also has been happening a little more frequently as of late. Anyone else experience this problem or have any wisdom to share? Thanks in advance. James
Peculiar intermittent problem.
At one of my client sites running qmail, I run into a peculiar problem that occurs about twice per month and I was wondering if anyone else has encountered these sorts of things. This problem has happened with several different users at one time or another at my client's site. qmail-1.03-10 is installed with the msglog patch so duplicates of incoming and outgoing email are kept on my client's server for tape archiving. All of the end users on his LAN are using Windows 95 with MicroSoft Outlook 97 for an email client connecting to the qmail pop-3 server. All of the users have their client software set to NOT leave email on the server. qmail with the exception of this intermittent problem is very stable and I am very pleased with its performance. I'm inclined to suspect this problem might be one in of the following; My first choice would be MS Outlook email client, secondly something I have set up incorrectly somewhere, then lastly and unlikely, the msglog patch. I would doubt its qmail itself that is causing this intermittent problem so I have left it out of my choices of possibilities. *Symptoms of the problem itself* About twice or so per month a user (no one in particular) will have several emails in their $HOME/Maildir/new directory. Their Win95 workstation will attempt to connect to the pop-3 qmail server and they will get a failed download of the emails. All of the messages that _were_ in their $HOME/Maildir/new will be _moved_ from $HOME/Maildir/new to their $HOME/Maildir/cur and all of the messages will have a ;2 appended to the end of the message file name. Their download of email messages will abort. In subsequent attempts by the user to collect email messages from the qmail pop-3 server the user's email client will fail and no email messages will be downloaded. *A temporary fix* However, if the _oldest_ email in the user's $HOME/Maildir/cur is deleted or removed from the directory, and the ;2 suffix is removed from the messages and they are _moved_ back into the user's $HOME/Maildir/new directory, their email client will download the emails without any problems as if nothing had happened. *My question* My question is, has anyone else encountered the same intermittent problem I have been encountering ? If so, I am curious as to what is causing it and also, how could I prevent it ? Regards, Harley Silver
[Q] qmail + MySQL
Hi~ I just have installed qmail + MySQL at my RedHat 6.0 system. I can receive mail to shell account. But I can't receive mail to mysql stored user. The following is some part of /var/log/maillog : Nov 24 03:57:45 mail qmail: 943383465.900086 delivery 35: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ But I already made the user's home dir and Maildir like following : [root@mail control]# ls -al /var/webromail/d/dolphin total 40 drwxr-xr-x 3 webroml webroml 1024 Nov 24 02:40 ./ drwxr-xr-x 2321 webroml webroml 37888 Nov 24 01:55 ../ drwx-- 5 webroml webroml 1024 Nov 24 01:57 Maildir/ I want to receive mails to mysql stored user; p.s. pop3 connection for shell account is ok. but pop3 for mysql stored account has error - Authorization failed.
RE: From: and To: - Headers with SMTP-Messages
-Original Message- From: Chris Mikkelson [mailto:[EMAIL PROTECTED]] Sent: Freitag, 19. November 1999 16:59 To: Ekker, Heinz Cc: 'QMail-List' Subject: Re: From: and To: - Headers with SMTP-Messages On Fri, 19 Nov 1999 09:25:06 +0100 , "Ekker, Heinz" writes: You could probably use a variant of the fixup/@fixme hack described in the FAQ. Feed the message through an appropriate formail command line to add the headers, and then through forward or qmail-inject to deliver it to the final destination. This will send the message twice through the queue, which is a bit of a performance hit. That's what I did first - but the results were not really satisfying. A bit of a performance hit does not quite describe it... I'm looking into rewriting headers in a wrapper around qmail-queue. I'm thinking about patching qmail-smtpd a little. Basically it does some header-checking (checks the received: and delivered: for loops) already, and that's were I'm putting my little C-Knowledge in. With the use of (basically) the same function that inserts the received: headers, I'm putting a sender: and a to: - header in (taken from the envelope), if its missing. Messages without the blank line between header and body are bounced. Of course, this 'header rewriting' is not quite as sophisticated as it should be, or as qmail-inject is, but it saves a hop. If anyone is interested, drop me a mail! -Chris bye! --- Heinz Ekker/ mailto:[EMAIL PROTECTED] -- home: http://www.slatibartfass.org -- work: NETWAY Operations Center/ mailto:[EMAIL PROTECTED] --- refutile is sistance - defect of borg
Re: From: and To: - Headers with SMTP-Messages
On Tue, 23 Nov 1999 21:54:55 +0100 , "Ekker, Heinz" writes: You could probably use a variant of the fixup/@fixme hack described in the FAQ. Feed the message through an appropriate formail command line to add the headers, and then through forward or qmail-inject to deliver it to the final destination. This will send the message twice through the queue, which is a bit of a performance hit. That's what I did first - but the results were not really satisfying. A bit of a performance hit does not quite describe it... Yeah, I was being charitable ... qmail-send's throughput is limited by the latency of two to three fsync() calls per message. That will pretty much be a constant bottleneck to message processing. The preprocessing should be done in a per-message process, so that this bottleneck disappears. The point is, plugging the extra program into the qmail pipeline is not where you lose performance: going through the pipeline is. I'm looking into rewriting headers in a wrapper around qmail-queue. [which will run an extra program, but do everything in one trip through the queue] I'm thinking about patching qmail-smtpd a little. Basically it does some header-checking (checks the received: and delivered: for loops) already, and that's were I'm putting my little C-Knowledge in. With the use of (basically) the same function that inserts the received: headers, I'm putting a sender: and a to: - header in (taken from the envelope), if its missing. Messages without the blank line between header and body are bounced. Of course, this 'header rewriting' is not quite as sophisticated as it should be, or as qmail-inject is, but it saves a hop. If anyone is interested, drop me a mail! You might want to take a look at ofmipd -- it is part of Bernstein's mess822 package, and does header rewriting. About the only thing that keeps it from being a good production mail server is that it is an open relaying server. I don't know how hard it would be to patch it to use rcpthosts. I have a bias (even as a reasonably experienced C programmer) toward using other people's tested code, rather than writing my own hacks from scratch. This is why I was turning you toward formail. It would be a reasonably simple hack to write a qmail-queue wrapper that calls formail. The difference is, this hack gives you all the flexibility of formail (lots) with little effort on your part. Even if you don't foresee exploiting all of that flexibility, it can't hurt to leave the option open for later. -- Chris Mikkelson | Einstein himself said that God doesn't roll dice. But [EMAIL PROTECTED] | he was wrong. And in fact, anyone who has played role- | playing games knows that God probably had to roll quite | a few dice to come up with a character like Einstein. | -- Larry Wall
Alias oddity
Greetings... I'm having mail bounce back to senders who are trying to reach an address in one of the domains on my qmail-1.03 server. Below is a failure message I received when I tried sending to it myself. The relevant lines from control files are: rcpthosts: davidjfrank.com virtualdomains: davidjfrank.com:alias-djf And there is a file in alias' home directory called .qmail-djf-HRSpec which contains the proper delivery instructions. This system handles several other domains and everything works just fine. Could the capitalization have anything to do with this? Here are the relevant logfile lines for the message below: Nov 23 18:35:03 unix2 qmail: 943403703.814606 new msg 52864 Nov 23 18:35:03 unix2 qmail: 943403703.814964 info msg 52864: bytes 549 from [EMAIL PROTECTED] qp 20938 uid 61 Nov 23 18:35:03 unix2 qmail: 943403703.819238 starting delivery 8515: msg 52864 to local [EMAIL PROTECTED] Nov 23 18:35:03 unix2 qmail: 943403703.819450 status: local 1/10 remote 0/20 Nov 23 18:35:03 unix2 qmail: 943403703.843135 delivery 8515: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ Nov 23 18:35:03 unix2 qmail: 943403703.843414 status: local 0/10 remote 0/20 Nov 23 18:35:03 unix2 qmail: 943403703.855484 bounce msg 52864 qp 20941 Nov 23 18:35:03 unix2 qmail: 943403703.857122 end msg 52864 Any ideas about what's happening here? TIA... -Brandon :) - Forwarded message from [EMAIL PROTECTED] - Date: 24 Nov 1999 00:35:03 - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: failure notice Hi. This is the qmail-send program at unix2.netstream.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: [EMAIL PROTECTED] Received: (qmail 20938 invoked from network); 24 Nov 1999 00:35:03 - Received: from unix.netstream.net ([EMAIL PROTECTED]) by unix2.netstream.net with SMTP; 24 Nov 1999 00:35:03 - Received: (qmail 24647 invoked by uid 504); 24 Nov 1999 00:37:45 - Date: Tue, 23 Nov 1999 18:37:45 -0600 From: Brandon Ibach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Testing... Message-ID: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i Just testing... - End forwarded message -
RE: [Q] qmail + MySQL
Have you checked the connectivity to the mySQL database? Use the same information you have in /var/qmail/control/sqlserver with your mysqlclient and do the same query. Did the output look good? Best regards Michael Boman PS The mySQL patch uses crypt() ed password by default. It is not the same as mysql crypt() function. There can be a problem there as well. DS -Original Message- From: ¹è¼º½Ä [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 24 November, 1999 04:10 AM To: [EMAIL PROTECTED] Subject: [Q] qmail + MySQL Hi~ I just have installed qmail + MySQL at my RedHat 6.0 system. I can receive mail to shell account. But I can't receive mail to mysql stored user. The following is some part of /var/log/maillog : Nov 24 03:57:45 mail qmail: 943383465.900086 delivery 35: failure:Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ But I already made the user's home dir and Maildir like following : [root@mail control]# ls -al /var/webromail/d/dolphin total 40 drwxr-xr-x 3 webroml webroml 1024 Nov 24 02:40 ./ drwxr-xr-x 2321 webroml webroml 37888 Nov 24 01:55 ../ drwx-- 5 webroml webroml 1024 Nov 24 01:57 Maildir/ I want to receive mails to mysql stored user; p.s. pop3 connection for shell account is ok. but pop3 for mysql stored account has error - Authorization failed.
RE: Help! I am still a open relay!!
I have applied mySQL patch to qmail and hacked it so all mails going to [EMAIL PROTECTED] will be redirect to [EMAIL PROTECTED] And I am VERY sure that I am still an open relay. Best regards, Michael Boman -Original Message- From: Chris Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 November, 1999 15:04 PM To: Michael Boman Cc: Qmail Subject: Re: Help! I am still a open relay!! On Tue, Nov 23, 1999 at 11:23:26AM +0800, Michael Boman wrote: I have been following the instructions in http://qmail-docs.surfdirect.com.au/docs/qmail-antirelay.html but it seems like I am still an open relay! What is wrong?! What I want to do is allow any user on my C-net / LAN to send mail thru the SMTP server without any limitations, and the world only send/recive mails either to or from a @company address. LOCALHOST: can send as who-ever@what-ever to anyone@anyhost LAN: can send as who-ever@what-ever to anyone@anyhost OUR C-NET: can send as who-ever@what-ever to anyone@anyhost WORLD: can send as user@company to anyone@anyhost Best regards, Michael Boman PS The files: # cat /var/qmail/control/rcpthosts intsys.wizoffice.com intsys.wizoffice.com.sg localhost webmail.intsys.wizoffice.com webmail.intsys.wizoffice.com.sg webmail.wizoffice.com webmail.wizoffice.com.sg wizoffice.com wizoffice.com.sg # cat /etc/tcp.smtp 192.168.2.:allow,RELAYCLIENT="" 10.1.:allow,RELAYCLIENT="" 127.:allow,RELAYCLIENT="" 203.117.18.:allow,RELAYCLIENT="" :allow If those are really your files and you haven't patched qmail-smtpd in some weird way, then your relay isn't open. Are you sure that it is? Chris
RE: Help! I am still a open relay!!
I runned a few tests, and I have included 2 of them here: webmail:~# tcprulescheck /etc/tcp.smtp.cdb 192.168.2.3 rule 192.168.2.: set environment variable RELAYCLIENT= allow connection webmail:~# tcprulescheck /etc/tcp.smtp.cdb 194.236.13.242 rule : allow connection It seems to be OK, right? Best regards Michael Boman -Original Message- From: cstone [mailto:cstone]On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 23 November, 1999 21:23 PM To: Michael Boman Cc: Qmail Subject: Re: Help! I am still a open relay!! have you tried running tcprulescheck against you smtp.cdb file? If not do so it is very helpful in debuggiing problems. do a man on tcprules syntax Brian Michael Boman wrote: I have been following the instructions in http://qmail-docs.surfdirect.com.au/docs/qmail-antirelay.html but it seems like I am still an open relay! What is wrong?! What I want to do is allow any user on my C-net / LAN to send mail thru the SMTP server without any limitations, and the world only send/recive mails either to or from a @company address. LOCALHOST: can send as who-ever@what-ever to anyone@anyhost LAN: can send as who-ever@what-ever to anyone@anyhost OUR C-NET: can send as who-ever@what-ever to anyone@anyhost WORLD: can send as user@company to anyone@anyhost Best regards, Michael Boman PS The files: # cat /var/qmail/control/rcpthosts intsys.wizoffice.com intsys.wizoffice.com.sg localhost webmail.intsys.wizoffice.com webmail.intsys.wizoffice.com.sg webmail.wizoffice.com webmail.wizoffice.com.sg wizoffice.com wizoffice.com.sg # cat /etc/tcp.smtp 192.168.2.:allow,RELAYCLIENT="" 10.1.:allow,RELAYCLIENT="" 127.:allow,RELAYCLIENT="" 203.117.18.:allow,RELAYCLIENT="" :allow I made the /etc/tcp.smtp.cdb file using following command: # cat /etc/tcp.smtp | tcprules /etc/tcp.smtp.cdb ~/tcp.smtp.tmp I am running tcpserver with following syntrax: tcpserver -v -H -R -x/etc/tcp.smtp.cdb -c 100 -u 1001 -g 101 0 smtp /var/qmail/bin/qmail-smtpd | /var/qmail/bin/splogger smtpd 3 DS -- Michael Boman, Systems Engineer WizOffice.Com Pte Ltd - 16 Tannery Lane, #06-00 Crystal Time Building, Singapore. 347778 Your Online Office Wizard - http://www.wizoffice.com/
help! installing qmail
I'm trying to install qmail... it's all compiled... but when I try to send an email from another system to the box... it goes to the box, but it doesn't report an error message, but doesn't get delivered. What did I do wrong? Thanks ___ --Mike "Life moves pretty quickly, if you don't stop and look around you might miss it" - Ferris Buler ___
line feeds with carriage return
I'm using Qmail 1.03.9 (rpm pakcage) Recently, someone reported that he couldn't send e-mail from his domain to my domain with line feeds carriage return or bare line in the message. Is it normal ? Is there any way to fix it ? ddn __ Get Your Private, Free Email at http://www.hotmail.com
Re: line feeds with carriage return
Was it sixdgrees? andy -- --- Andy WaldenWork Email: [EMAIL PROTECTED] Network Administrator, Pers Email: [EMAIL PROTECTED] MTCO CommunicationsPhone: (800) 859-6826 "A little nonsense now and then, is relished by the wisest men." -Willi Wonka On Wed, 24 Nov 1999, deden purnamahadi wrote: I'm using Qmail 1.03.9 (rpm pakcage) Recently, someone reported that he couldn't send e-mail from his domain to my domain with line feeds carriage return or bare line in the message. Is it normal ? Is there any way to fix it ? ddn __ Get Your Private, Free Email at http://www.hotmail.com
Re: Outlook 5 and online check
At 3:18 PM -0500 11/22/99, Russell Nelson wrote: Jon Rust writes: M$ is trying to emulate an IMAP account with this feature called "online check." It basically checks the email, but just returns the headers. The user can then decide which emails to download to their system. With qmail-pop3d, mail is often lost. Anyone know of a work around? I haven't seen anyone report this problem yet. Could you go into more details? Customer is using OE 5 on a Mac running OS9. Lots of messages in his mailbox. Uses the "online check" feature of OE. This gives him a list of messages, their authors, and their subjects. If he then selects the first message, which should download it for viewing, OE flips out, selects the last message, and gives him an error. He says at that point mail is missing. That's all I have for now. I'll run some tcpdumps soon (after Turkey Day). The problem is 100% repeatable. jon
RE: line feeds with carriage return
Subject: Re: line feeds with carriage return Was it sixdgrees? I got one from them today! Well two in fact. Telling me some of their users couldn't send to us even though *they* pointed out that RFC822bis disallowed the bare line feeds. I told them I knew it and pointed them to the MS patch site http://support.microsoft.com/support/kb/articles/Q224/9/83.ASP (though they appear to be running sendmail.) I told them to fix their outgoing mail w/ fixcr if needbe... Michael Boyiazis - [EMAIL PROTECTED] NetZero Mail/Sys/Network Admin __ NetZero - Defenders of the Free World Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html
Re: line feeds with carriage return
Earlier this evening, I received a message from the chap at sixdegrees as well. All of the MX records for the domain that this service was having problems sending mail to were Windows NT machines. This isn't a problem with qmail. It's a problem of the technical mediocrity of those at sixdegrees. -- Derek Callaway [EMAIL PROTECTED] Programmer; CE Net, Inc. (302) 854-5440 Ext. 206
Re: line feeds with carriage return
Thus spake Derek Callaway: ;Earlier this evening, I received a message from the chap at sixdegrees as ;[ ... ] ;It's a problem of the technical mediocrity of those at ;sixdegrees. It's more than mere technical mediocity; it's mediocrity across the board... I used to be a member of sixdegrees, until I realized why I wasn't receiving any of their member updates. :) I tried multiple times to get some response from their "technical" customer service, but they couldn't be bothered to respond. I eventually decided to terminate my account with them, which took several *repeated* requests until they finally got around with it. When I killed my account with them, I told them (yet again) that it was simply because of their refusal to implement a properly behaved mail server. They could not have cared less. So, neither did I. In summary: sixdegrees is lame. // bob -- // Bob Krzaczek, RIT Center for Imaging Science [EMAIL PROTECTED]