qmail Digest 18 Oct 2000 10:00:01 -0000 Issue 1157
Topics (messages 50707 through 50763):
pop3 and smtp in redhat7
50707 by: Shashi Dahal
50714 by: Dave Sill
50723 by: Sean Reifschneider
Forwarding to another mailbox on same qmail box
50708 by: Michael Hinds
50709 by: Brett Randall
Re: fastforward
50710 by: Carsten Mueller
50754 by: Richard Sj�g�rdh
50755 by: Brett Randall
50757 by: Richard Sj�g�rdh
50758 by: Brett Randall
unsent mail
50711 by: Mark Lo
50712 by: Dave Sill
Re: Send email very slowly
50713 by: Dave Sill
Re: How to hide the ip address of the client sender from the message header?
50715 by: Mike A. Sauvain
50717 by: Tim Hunter
50727 by: Mike A. Sauvain
50728 by: Tim Hunter
virtualhosts and aliases
50716 by: Roger Lipscombe
50725 by: Dave Sill
qmail-mrtg-multilog [all 0's for me]
50718 by: Alex Khanin
50719 by: Gary Richardson
Re: qmail-smtpd-auth-0.26 - security fix
50720 by: Olivier M.
50759 by: Krzysztof Dabrowski
Re: qmail Memphis RPM relaying by default?
50721 by: Mate Wierdl
Re: Bounce-no-mailbox AND postmaster vpopmail delivery
50722 by: davi.avati.com.br
Re: vpopmail
50724 by: Sean Reifschneider
50726 by: Ken Jones
50735 by: Sean Reifschneider
Linux7
50729 by: Mike Jimenez
50731 by: kevin.oceania.net
50734 by: Sean Reifschneider
50741 by: Ken Jones
50742 by: kevin.oceania.net
50743 by: Sean Reifschneider
50746 by: Ken Jones
50753 by: Jeroen ten Berge
50760 by: pgracia.amira.es
pop3 question
50730 by: Eric Garff
50732 by: Mira Tempir
Re: that domain isn't in my list of allowed rcpthosts
50733 by: kevin.oceania.net
I'm trying to do something weird.... coders help needed.
50736 by: Javier Szyszlican
50737 by: Peter Samuel
open relay test
50738 by: kevin.oceania.net
50739 by: Hubbard, David
stopping relaying
50740 by: kevin.oceania.net
relay-ctrl-2.5 doesn't work
50744 by: Hans Peyrot
50745 by: Sean Reifschneider
Fat qmail in Solaris, trim qmail in OpenBSD?
50747 by: fangchin.leland.stanford.edu
50756 by: Martin Jespersen
dots in email addresses (probably not what you think)
50748 by: bthomson.csi.co.nz
50749 by: Alex Pennace
sendmail and relaying
50750 by: kevin.oceania.net
50751 by: Brett Randall
PROBLEM WITH SPEED
50752 by: Sinisa Malesevic
our qmail server shutdown HELP!!!!
50761 by: zhangshouhui
urgnt help : smtp routes not working
50762 by: reach_prashant.zeenext.com
50763 by: Brett Randall
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]
----------------------------------------------------------------------
Dear All,
How do I define pop3 and smtp for qmail in redhat7 which uses xinetd.
Thanks
--
Best regards,
Shashi mailto:[EMAIL PROTECTED]
Shashi Dahal <[EMAIL PROTECTED]> wrote:
>How do I define pop3 and smtp for qmail in redhat7 which uses xinetd.
The recommended server for qmail services is still tcpserver from
ucpsp-tcp[1], as detailed in "Life with qmail"[2].
-Dave
Footnotes:
[1] http://cr.yp.to/ucspi-tcp.html
[2] http://Web.InfoAve.Net/~dsill/lwq.html
On Tue, Oct 17, 2000 at 04:32:01AM +0545, Shashi Dahal wrote:
>How do I define pop3 and smtp for qmail in redhat7 which uses xinetd.
Pick up the SRPMs from http://www.em.ca/~bruceg/qmail+patches/ and
build and install them ("rpm --rebuild whatever.src.rpm" generates
the binary RPM and puts it in /usr/src/redhat/RPMS/i386). These install
tcpserver and set them up to handle SMTP and POP.
If the build hangs, let me know. I've been meaning to track that one
down. BruceG: brp-compress has been hanging during a --rebuild lately.
This seems to be a Redhat problem.
Sean
--
Let us live!!! Let us love!!! Let us share the deepest secrets
of our souls!!! You first.
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
Hi guys,
I'm trying to forward all mail for [EMAIL PROTECTED] to
[EMAIL PROTECTED] At the moment info exists as a Linux user, but that
doesn't have to be the case. I have a .qmail file in /home/info with 1
line:
/home/otheruser/Mailbox
qmail complains that access is denied to that Mailbox file when it tries
to forward the mail.
I'd rather not install any extra packages (like .forward???) for such a
simple task. Any suggestions?
Cheers,
Michael Hinds
>>>>> "Michael" == Michael Hinds <[EMAIL PROTECTED]> writes:
Michael> Hi guys, I'm trying to forward all mail for
Michael> [EMAIL PROTECTED] to [EMAIL PROTECTED] At the moment info
Michael> exists as a Linux user, but that doesn't have to be the
Michael> case. I have a .qmail file in /home/info with 1 line:
Michael> /home/otheruser/Mailbox
Michael> qmail complains that access is denied to that Mailbox
Michael> file when it tries to forward the mail.
Yeah, get rid of the info user and put in ~alias/.qmail-info :
otheruser
That is all. Just one line with other user's username in the above
file. Simple. all .qmail, .qmail-default and .qmail-user files have
the same 'format' (work the same way). Keep that in mind and you'll
always be right.
--
=======================================================
|User: |Href: |Status: |
-------------------------------------------------------
|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
=======================================================
Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
sorry brett randalL :-)
At 23:29 16.10.00, you wrote:
>Carsten Mueller <[EMAIL PROTECTED]> writes:
>
> > brett randal: have you ever worked with fastforward???
>
>Well, if you could read, my surname has 2 l's (randall). And yes, I
>use fastforward extensively.
>
> > if some users want to use fastforward and send mails to local and remote
> > users without .qmail files let them do it!!!!!
> > ...
> > if you want to get mails for [EMAIL PROTECTED] and deliver it local to user
> > test2 und remote to [EMAIL PROTECTED] do the following steps:
>
>No, he said in the original e-mail that he would like to have the
>following line in aliases:
>
>user: [EMAIL PROTECTED], user
>NOT
>user: [EMAIL PROTECTED], anotheruser
it�s the same problem.
my description work with
user: [EMAIL PROTECTED], user
and
user: [EMAIL PROTECTED], anotheruser
cause if somewhere.else.com is not in locals all incoming mail
ist passed through fastforward.
> >From his description, he wants an e-mail that is addressed to user to
>be delivered to that SAME user locally (ie to their maildir), and to
>another e-mail address elsewhere. That is the syntax and description
>Richard gave, that is what I told him to use .qmail files
>for. Sendmail's implementation of aliases, even though they invented
>them, is wrong. It should theoretically create a loop, but it doesn't.
>
>Richard, please clarify your question so we can help you properly.
>--
>=======================================================
>|User: |Href: |Status: |
>-------------------------------------------------------
>|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
>=======================================================
> Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
Hi all,
the problem still exists for me. I want the same incoming mail to be
delivered to a local user _and_ to another address, in this case the
private home address of the same user. I've tried the .qmail
&[EMAIL PROTECTED]
./Maildir
but it doesn't work.
Perhaps if I could cc all incoming mail to a local user to an extern
address? Does anyone know how to set this up?
...it was so simple in sendmail..... (!)
/Richard
At 13:43 2000-10-17 +0200, Carsten Mueller wrote:
>sorry brett randalL :-)
>
>
>At 23:29 16.10.00, you wrote:
>>Carsten Mueller <[EMAIL PROTECTED]> writes:
>>
>> > brett randal: have you ever worked with fastforward???
>>
>>Well, if you could read, my surname has 2 l's (randall). And yes, I
>>use fastforward extensively.
>>
>> > if some users want to use fastforward and send mails to local and remote
>> > users without .qmail files let them do it!!!!!
>> > ...
>> > if you want to get mails for [EMAIL PROTECTED] and deliver it local to
>> user
>> > test2 und remote to [EMAIL PROTECTED] do the following steps:
>>
>>No, he said in the original e-mail that he would like to have the
>>following line in aliases:
>>
>>user: [EMAIL PROTECTED], user
>>NOT
>>user: [EMAIL PROTECTED], anotheruser
>it�s the same problem.
>
>my description work with
>
>user: [EMAIL PROTECTED], user
>and
>user: [EMAIL PROTECTED], anotheruser
>
>cause if somewhere.else.com is not in locals all incoming mail
>ist passed through fastforward.
>
>> >From his description, he wants an e-mail that is addressed to user to
>>be delivered to that SAME user locally (ie to their maildir), and to
>>another e-mail address elsewhere. That is the syntax and description
>>Richard gave, that is what I told him to use .qmail files
>>for. Sendmail's implementation of aliases, even though they invented
>>them, is wrong. It should theoretically create a loop, but it doesn't.
>>
>>Richard, please clarify your question so we can help you properly.
>>--
>>=======================================================
>>|User: |Href: |Status: |
>>-------------------------------------------------------
>>|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
>>=======================================================
>> Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
>
>>>>> "Richard" == Richard Sj�g�rdh <[EMAIL PROTECTED]> writes:
Richard> Hi all, the problem still exists for me. I want the same
Richard> incoming mail to be delivered to a local user _and_ to
Richard> another address, in this case the private home address of
Richard> the same user. I've tried the .qmail
Richard> &[EMAIL PROTECTED]
Richard> ./Maildir
Richard> but it doesn't work.
Try:
&[EMAIL PROTECTED]
./Maildir/
like I originally stated.
Richard> Perhaps if I could cc all incoming mail to a local user
Richard> to an extern address? Does anyone know how to set this
Richard> up?
This is qmail...you shouldn't have to.
--
=======================================================
|User: |Href: |Status: |
-------------------------------------------------------
|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
=======================================================
Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
That�s what i did, I just forgot the slash in te mail.
At 18:41 2000-10-18 +1100, Brett Randall wrote:
> >>>>> "Richard" == Richard Sj�g�rdh <[EMAIL PROTECTED]> writes:
>
> Richard> Hi all, the problem still exists for me. I want the same
> Richard> incoming mail to be delivered to a local user _and_ to
> Richard> another address, in this case the private home address of
> Richard> the same user. I've tried the .qmail
> Richard> &[EMAIL PROTECTED]
> Richard> ./Maildir
> Richard> but it doesn't work.
>
>Try:
>
>&[EMAIL PROTECTED]
>./Maildir/
>
>like I originally stated.
>
> Richard> Perhaps if I could cc all incoming mail to a local user
> Richard> to an extern address? Does anyone know how to set this
> Richard> up?
>
>This is qmail...you shouldn't have to.
>--
>=======================================================
>|User: |Href: |Status: |
>-------------------------------------------------------
>|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
>=======================================================
> Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
>>>>> "Richard" == Richard Sj�g�rdh <[EMAIL PROTECTED]> writes:
Richard> That�s what i did, I just forgot the slash in te mail.
Well, in that case, what do the logs say when you try to send an
e-mail to that address?
--
"Double your drive space - delete Windows!"
- Bumper Sticker
Hi,
I would like to know in what directory is the location of unsent mail
files in Qmail.??
Thank you
Mark
"Mark Lo" <[EMAIL PROTECTED]> wrote:
> I would like to know in what directory is the location of unsent mail
>files in Qmail.??
See:
http://Web.InfoAve.Net/~dsill/lwq.html#file-structure
-Dave
Paulus Hendarwan <[EMAIL PROTECTED]> wrote:
>I got a rather serious problem on our qmail server.
>If we send from local (our domain) to local or
>from remote to local, our qmail just works greatly.
>But if we send email from local to remote address,
>qmail send it very slowly (taking about 4 hours from
>time that qmail issue "from ..." message to time that
>qmail issue "to...." message.
>Why can it be ?
1) What Do The Logs Say? (tm)
2) Are messages to all remote systems sent slowly, or just to certain
systems?
3) What happens if you manually inject a message (using "telnet
remote.host 25" and the necessary SMTP commands) remotely?
-Dave
How to hide the ip address of the client sender from the message header?
mail source:
Received: (qmail 391 invoked from network); 17 Oct 2000 08:43:48 -0000
Received: from freesurf.ch (HELO freesurfmail.sunrise.ch) (194.230.0.32)
by 192.168.1.20 with SMTP; 17 Oct 2000 08:43:48 -0000
~^~^~~~^~ ^~~~^^
how i can solve the problem ?
thanks..... mike
----- Original Message -----
From: "Chris Johnson" <[EMAIL PROTECTED]>
To: "Francesco Munaretto" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 16, 2000 5:41 PM
Subject: Re: How to hide the ip address of the client sender from the
message header?
On Mon, Oct 16, 2000 at 04:11:56PM +0200, Francesco Munaretto wrote:
> 194.194.194.194 LAN
> | |
> mail----------INTERNET-----Firewall-----+--mail (192.168.0.2)
> mydomain2.com +--mypc (192.168.0.3)
> mydomain.com
>
> I'm using a pop3 server on mail.mydomain2.com.
> I'have received a message from mail.mydomain.com and
> in the header message there are the following text lines:
>
> Received: from mail.mydomain.com ([194.194.194.194])
> by www (8.10.2/8.10.2) with SMTP id e9G9FZq12616
> for <[EMAIL PROTECTED]>; Mon, 16 Oct 2000 11:15:35 +0200
> Received: (qmail 2553 invoked from network); 16 Oct 2000 09:09:58 -0000
> Received: from unknown (HELO mypc) (192.168.0.3)
> ^^^^^^^^^^^^^^^^^^^^^^^
> by 192.168.0.2 with SMTP; 16 Oct 2000 09:09:58 -0000
> ^^^^^^^^^^^^^^
> ...
>
> In the header appears the host name and the ip address
> of the client sender and the internal ip address of the
> qmail server (either protected by firewall).
> How to scrub the private ip addresses from the header?
If you're using tcpserver, try putting this in your rules file:
192.168.0.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT=""
Chris
--
To unsubscribe, send mail to [EMAIL PROTECTED] with "unsubscribe"
in the subject field of the message.
Please read the documentation and the FAQ before posting a question --
chances
are it's already been answered.
http://www.proftpd.net -- The Official ProFTPD web site.
http://bugs.proftpd.net -- Bug reporting and feature requests.
http://www.proftpd.net/docs/ -- The latest ProFTPD documentation and
FAQ.
To quote an old message to the list
On Fri, Sep 22, 2000 at 11:09:59AM +0800, Paul Tan wrote:
> Hi guys,
>
> Is there a way to NOT show my internal email IPs and stuff,
which
> module must i add to filter those stuff out ??
If you're using tcpserver, put something like this in your rules file:
192.168.100.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT=""
Chris
-- Tim
-----Original Message-----
From: Mike A. Sauvain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 7:12 AM
To: [EMAIL PROTECTED]
Subject: Re: How to hide the ip address of the client sender from the
message header?
How to hide the ip address of the client sender from the message header?
mail source:
Received: (qmail 391 invoked from network); 17 Oct 2000 08:43:48 -0000
Received: from freesurf.ch (HELO freesurfmail.sunrise.ch) (194.230.0.32)
by 192.168.1.20 with SMTP; 17 Oct 2000 08:43:48 -0000
~^~^~~~^~ ^~~~^^
how i can solve the problem ?
thanks..... mike
----- Original Message -----
From: "Chris Johnson" <[EMAIL PROTECTED]>
To: "Francesco Munaretto" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 16, 2000 5:41 PM
Subject: Re: How to hide the ip address of the client sender from the
message header?
On Mon, Oct 16, 2000 at 04:11:56PM +0200, Francesco Munaretto wrote:
> 194.194.194.194 LAN
> | |
> mail----------INTERNET-----Firewall-----+--mail (192.168.0.2)
> mydomain2.com +--mypc (192.168.0.3)
> mydomain.com
>
> I'm using a pop3 server on mail.mydomain2.com.
> I'have received a message from mail.mydomain.com and
> in the header message there are the following text lines:
>
> Received: from mail.mydomain.com ([194.194.194.194])
> by www (8.10.2/8.10.2) with SMTP id e9G9FZq12616
> for <[EMAIL PROTECTED]>; Mon, 16 Oct 2000 11:15:35 +0200
> Received: (qmail 2553 invoked from network); 16 Oct 2000 09:09:58 -0000
> Received: from unknown (HELO mypc) (192.168.0.3)
> ^^^^^^^^^^^^^^^^^^^^^^^
> by 192.168.0.2 with SMTP; 16 Oct 2000 09:09:58 -0000
> ^^^^^^^^^^^^^^
> ...
>
> In the header appears the host name and the ip address
> of the client sender and the internal ip address of the
> qmail server (either protected by firewall).
> How to scrub the private ip addresses from the header?
If you're using tcpserver, try putting this in your rules file:
192.168.0.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT=""
Chris
--
To unsubscribe, send mail to [EMAIL PROTECTED] with "unsubscribe"
in the subject field of the message.
Please read the documentation and the FAQ before posting a question --
chances
are it's already been answered.
http://www.proftpd.net -- The Official ProFTPD web site.
http://bugs.proftpd.net -- Bug reporting and feature requests.
http://www.proftpd.net/docs/ -- The latest ProFTPD documentation and
FAQ.
192.168.100.:allow,TCPREMOTEHOST="needed out ip?"
,TCPREMOTEIP="",RELAYCLIENT=""
how i defined it ?. i was looking on different places, like site's and man's
but nothing really specific found.
Received: (qmail 391 invoked from network); 17 Oct 2000 08:43:48 -0000
Received: from freesurf.ch (HELO freesurfmail.sunrise.ch) (194.230.0.32)
by 192.168.1.20 with SMTP; 17 Oct 2000 08:43:48 -0000
thanks, mike.......
No, just like it was written
192.168.100.:allow,TCPREMOTEHOST="",TCPREMOTEIP="",RELAYCLIENT=""
This essentially overrides the variables set by the connection and makes it
look like this
Received: (qmail 25666 invoked from network); 17 Oct 2000 20:26:18 -0000
Received: from (HELO mensa) ()
by 192.168.100.10 with SMTP; 17 Oct 2000 20:26:18 -0000
-----Original Message-----
From: Mike A. Sauvain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 4:34 PM
To: Tim Hunter; [EMAIL PROTECTED]
Subject: Re: How to hide the ip address of the client sender from the
message header?
192.168.100.:allow,TCPREMOTEHOST="needed out ip?"
,TCPREMOTEIP="",RELAYCLIENT=""
how i defined it ?. i was looking on different places, like site's and man's
but nothing really specific found.
Received: (qmail 391 invoked from network); 17 Oct 2000 08:43:48 -0000
Received: from freesurf.ch (HELO freesurfmail.sunrise.ch) (194.230.0.32)
by 192.168.1.20 with SMTP; 17 Oct 2000 08:43:48 -0000
thanks, mike.......
I'm just experimenting with using qmail to accept delivery of email
for multiple domains on the same machine. I think I've got everything
configured nicely, but...
Consider...
mail.foo.com is the MX for both foo.com and bar.com
I'd like {postmaster,webmaster}@{foo,bar}.com to be delivered to me.
I'd like any email to a user account that exists on the machine to be
delivered to that user, regardless of which host it came in for.
I'd like any email to bar.com that doesn't resolve to a known user to
be delivered to a specific user.
Currently, I've got "bar.com:alias-bar" in control/virtualdomains,
which delivers the email via ~alias/.qmail-bar-whatever. So, I've got
.qmail-bar-postmaster and .qmail-bar-webmaster pointing at
[EMAIL PROTECTED], which works.
I can't see how to solve the other two problems. I know that I can
set up ~alias/.qmail-bar-default to solve the third, but I'd like to
solve the second problem as well.
This seems a little lopsided - I've special-cased the bar.com email,
but the foo.com stuff works "out of the box". Am I doing it right?
Also, I was wondering if anyone had any tips/caveats for the unsuspecting
qmail beginner that I should be aware of?
Roger Lipscombe <[EMAIL PROTECTED]> wrote:
Beerology, eh? I'm an amateur beerologist, myself.
>mail.foo.com is the MX for both foo.com and bar.com
>
>I'd like {postmaster,webmaster}@{foo,bar}.com to be delivered to me.
>
>I'd like any email to a user account that exists on the machine to be
>delivered to that user, regardless of which host it came in for.
So far, you want foo.com and bar.com to behave as if they're local,
not virtual.
>I'd like any email to bar.com that doesn't resolve to a known user to
>be delivered to a specific user.
So put both foo.com and bar.com in control/locals, remove bar.com from
control/virtualdomains, and create a ~alias/.qmail-default that looks
for bar.com in the recipient's address and forwards to the specified
user if found.
>Also, I was wondering if anyone had any tips/caveats for the unsuspecting
>qmail beginner that I should be aware of?
http://lwq.sill.org, especially Appendix G.
-Dave
[root@ns2 qm]# cat mrtg.cfg
WorkDir: /usr/local/apache/htdocs/qm
#############################################################
Title[messages]: example.com - qmail message throughput
MaxBytes[messages]: 100
AbsMax[messages]: 10000
Options[messages]: gauge
Target[messages]: `/usr/local/apache/htdocs/qm/qmail-mrtg-mess
/backup/log/qmail`
PageTop[messages]: <H1>example.com - qmail message throughput</H1>
ShortLegend[messages]: Messages
YLegend[messages]: Messages
Legend1[messages]: Total messages
LegendI[messages]: Deliveries:
LegendO[messages]: Attempts:
WithPeak[messages]: ymwd
#-------------------------------------------------------------------
Title[queue-size]: example.com - qmail queue size
MaxBytes[queue-size]: 1000
AbsMax[queue-size]: 10000
Options[queue-size]: gauge
Target[queue-size]: `/usr/local/apache/htdocs/qm/qmail-mrtg-queue`
PageTop[queue-size]: <H1>example.com - qmail queue size</H1>
ShortLegend[queue-size]: Messages
YLegend[queue-size]: Messages
Legend1[queue-size]: Messages
LegendI[queue-size]: Messages:
LegendO[queue-size]: Unprocessed Messages:
WithPeak[queue-size]: ymwd
#-------------------------------------------------------------------
Title[concurrency]: example.com - qmail concurrency
MaxBytes[concurrency]: 1000
AbsMax[concurrency]: 10000
Options[concurrency]: gauge
Target[concurrency]: `/usr/local/apache/htdocs/qm/qmail-mrtg-concurrency
/backup/log/qmail`
PageTop[concurrency]: <H1>example.com - qmail concurrency</H1>
ShortLegend[concurrency]: Concurrency
YLegend[concurrency]: Concurrency
Legend1[concurrency]: Concurrency
LegendI[concurrency]: Local:
LegendO[concurrency]: Remote:
WithPeak[concurrency]: ymwd
#-------------------------------------------------------------------
[root@ns2 qm]# pwd
/usr/local/apache/htdocs/qm
[root@ns2 qm]# ls -al qmail-mrtg-*
-rwxr-xr-x 1 alex alex 680 Jun 12 13:08
qmail-mrtg-concurrency
-rwxr-xr-x 1 alex alex 2279 Jun 12 13:08 qmail-mrtg-mess
-rwxr-xr-x 1 alex alex 116 Jun 12 13:08 qmail-mrtg-queue
[root@ns2 qm]# ls -ld /backup/log/qmail/
drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 /backup/log/qmail/
[root@ns2 qm]# ls -la /backup/log/qmail/
total 940
drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 .
drwxrwxr-x 4 root root 4096 Oct 16 11:46 ..
-rwxr--r-- 1 qmaill nofiles 98027 Oct 17 08:54
@4000000039ec4c010f1ebc34.s
-rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
@4000000039ec4c0a0c33dcfc.s
-rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
@4000000039ec4c0e101944ec.s
-rwxr--r-- 1 qmaill nofiles 98035 Oct 17 08:54
@4000000039ec4c161c8621b4.s
-rwxr--r-- 1 qmaill nofiles 98124 Oct 17 08:54
@4000000039ec4c23300e7b8c.s
-rwxr--r-- 1 qmaill nofiles 98005 Oct 17 08:55
@4000000039ec4c331a2bbadc.s
-rwxr--r-- 1 qmaill nofiles 98002 Oct 17 08:55
@4000000039ec4c43094659fc.s
-rwxr--r-- 1 qmaill nofiles 98075 Oct 17 08:55
@4000000039ec4c5400f15b1c.s
-rwxr--r-- 1 qmaill nofiles 98106 Oct 17 09:02
@4000000039ec4de428cb717c.s
-rw-r--r-- 1 qmaill nofiles 26158 Oct 17 11:29 current
-rw------- 1 qmaill nofiles 0 Oct 16 11:07 lock
drwxrwxr-x 2 qmaill root 4096 Oct 17 11:27 smtpd
-rw-r--r-- 1 qmaill nofiles 0 Oct 16 11:07 state
// ok lets run the mrtg now..
[root@ns2 qm]# /usr/local/mrtg/bin/mrtg /usr/local/apache/htdocs/qm/mrtg.cfg
[root@ns2 qm]#
[root@ns2 qm]# grep -B 3 0.0 messages.html
<TITLE>example.com - qmail message throughput</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="300">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 17 Oct 2000 15:46:56 GMT">
--
<BODY BGCOLOR="#ffffff">
<H1>example.com - qmail message throughput</H1><BR>
<HR>
The statistics were last updated <B>Tuesday, 17 October 2000 at 11:41</B>
--
<TABLE CELLPADDING=0 CELLSPACING=0>
<TR>
<TD ALIGN=right><SMALL>Max <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
</SMALL></TD>
<TD WIDTH=5></TD>
<TD ALIGN=right><SMALL>Average <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
</SMALL></TD>
<TD WIDTH=5></TD>
<TD ALIGN=right><SMALL>Current <FONT
COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
<TD ALIGN=right><SMALL>0.0 Messages (0.0%)
--
i have more than 50k messages going out daily, yet these are my reports..
did anyone ever get _ANY_ qmail mrtg to work? if so please reply, with
what logger? (i use multilog) what qmail-mrtg? where to get it? what did
you edit in the cfg file/etc. thank you. help greatly appreciated!!
alex khanin, system administrator, relationalMail
205 hudson st, 7th floor, new york, ny 10013, usa
v: 646-613-2074 * e: alex -at- relationalmail.com
Hey,
I rewrote the qmail-mrtg-mess script the other day to handle it properly.
Multilog uses tai64n instead of the timestamp ones.
You need to compile the tai64n program as well.
Have fun.
On Tue, 17 Oct 2000 11:45:52 -0700, Alex Khanin said:
> [root@ns2 qm]# cat mrtg.cfg
> WorkDir: /usr/local/apache/htdocs/qm
> #############################################################
>
> Title[messages]: example.com - qmail message throughput
> MaxBytes[messages]: 100
> AbsMax[messages]: 10000
> Options[messages]: gauge
> Target[messages]: `/usr/local/apache/htdocs/qm/qmail-mrtg-mess
> /backup/log/qmail`
> PageTop[messages]: <H1>example.com - qmail message throughput</H1>
> ShortLegend[messages]: Messages
> YLegend[messages]: Messages
> Legend1[messages]: Total messages
> LegendI[messages]: Deliveries:
> LegendO[messages]: Attempts:
> WithPeak[messages]: ymwd
>
> #-------------------------------------------------------------------
>
> Title[queue-size]: example.com - qmail queue size
> MaxBytes[queue-size]: 1000
> AbsMax[queue-size]: 10000
> Options[queue-size]: gauge
> Target[queue-size]: `/usr/local/apache/htdocs/qm/qmail-mrtg-queue`
> PageTop[queue-size]: <H1>example.com - qmail queue size</H1>
> ShortLegend[queue-size]: Messages
> YLegend[queue-size]: Messages
> Legend1[queue-size]: Messages
> LegendI[queue-size]: Messages:
> LegendO[queue-size]: Unprocessed Messages:
> WithPeak[queue-size]: ymwd
>
> #-------------------------------------------------------------------
>
> Title[concurrency]: example.com - qmail concurrency
> MaxBytes[concurrency]: 1000
> AbsMax[concurrency]: 10000
> Options[concurrency]: gauge
> Target[concurrency]: `/usr/local/apache/htdocs/qm/qmail-mrtg-concurrency
> /backup/log/qmail`
> PageTop[concurrency]: <H1>example.com - qmail concurrency</H1>
> ShortLegend[concurrency]: Concurrency
> YLegend[concurrency]: Concurrency
> Legend1[concurrency]: Concurrency
> LegendI[concurrency]: Local:
> LegendO[concurrency]: Remote:
> WithPeak[concurrency]: ymwd
>
> #-------------------------------------------------------------------
>
> [root@ns2 qm]# pwd
> /usr/local/apache/htdocs/qm
>
> [root@ns2 qm]# ls -al qmail-mrtg-*
> -rwxr-xr-x 1 alex alex 680 Jun 12 13:08
> qmail-mrtg-concurrency
> -rwxr-xr-x 1 alex alex 2279 Jun 12 13:08 qmail-mrtg-mess
> -rwxr-xr-x 1 alex alex 116 Jun 12 13:08 qmail-mrtg-queue
>
> [root@ns2 qm]# ls -ld /backup/log/qmail/
> drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 /backup/log/qmail/
>
> [root@ns2 qm]# ls -la /backup/log/qmail/
> total 940
> drwxrwxr-x 3 qmaill root 4096 Oct 17 09:02 .
> drwxrwxr-x 4 root root 4096 Oct 16 11:46 ..
> -rwxr--r-- 1 qmaill nofiles 98027 Oct 17 08:54
> @4000000039ec4c010f1ebc34.s
> -rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
> @4000000039ec4c0a0c33dcfc.s
> -rwxr--r-- 1 qmaill nofiles 98095 Oct 17 08:54
> @4000000039ec4c0e101944ec.s
> -rwxr--r-- 1 qmaill nofiles 98035 Oct 17 08:54
> @4000000039ec4c161c8621b4.s
> -rwxr--r-- 1 qmaill nofiles 98124 Oct 17 08:54
> @4000000039ec4c23300e7b8c.s
> -rwxr--r-- 1 qmaill nofiles 98005 Oct 17 08:55
> @4000000039ec4c331a2bbadc.s
> -rwxr--r-- 1 qmaill nofiles 98002 Oct 17 08:55
> @4000000039ec4c43094659fc.s
> -rwxr--r-- 1 qmaill nofiles 98075 Oct 17 08:55
> @4000000039ec4c5400f15b1c.s
> -rwxr--r-- 1 qmaill nofiles 98106 Oct 17 09:02
> @4000000039ec4de428cb717c.s
> -rw-r--r-- 1 qmaill nofiles 26158 Oct 17 11:29 current
> -rw------- 1 qmaill nofiles 0 Oct 16 11:07 lock
> drwxrwxr-x 2 qmaill root 4096 Oct 17 11:27 smtpd
> -rw-r--r-- 1 qmaill nofiles 0 Oct 16 11:07 state
>
> // ok lets run the mrtg now..
>
> [root@ns2 qm]# /usr/local/mrtg/bin/mrtg /usr/local/apache/htdocs/qm/mrtg.cfg
> [root@ns2 qm]#
>
> [root@ns2 qm]# grep -B 3 0.0 messages.html
> <TITLE>example.com - qmail message throughput</TITLE>
> <META HTTP-EQUIV="Refresh" CONTENT="300">
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> <META HTTP-EQUIV="Expires" CONTENT="Tue, 17 Oct 2000 15:46:56 GMT">
> --
> <BODY BGCOLOR="#ffffff">
> <H1>example.com - qmail message throughput</H1><BR>
> <HR>
> The statistics were last updated <B>Tuesday, 17 October 2000 at 11:41</B>
> --
> <TABLE CELLPADDING=0 CELLSPACING=0>
> <TR>
> <TD ALIGN=right><SMALL>Max <FONT
> COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
> <TD ALIGN=right><SMALL>0.0 Messages (0.0%)
> </SMALL></TD>
> <TD WIDTH=5></TD>
> <TD ALIGN=right><SMALL>Average <FONT
> COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
> <TD ALIGN=right><SMALL>0.0 Messages (0.0%)
> </SMALL></TD>
> <TD WIDTH=5></TD>
> <TD ALIGN=right><SMALL>Current <FONT
> COLOR="#00cc00"> Deliveries:</FONT></SMALL></TD>
> <TD ALIGN=right><SMALL>0.0 Messages (0.0%)
> --
>
> i have more than 50k messages going out daily, yet these are my reports..
> did anyone ever get _ANY_ qmail mrtg to work? if so please reply, with
> what logger? (i use multilog) what qmail-mrtg? where to get it? what did
> you edit in the cfg file/etc. thank you. help greatly appreciated!!
>
>
> alex khanin, system administrator, relationalMail
> 205 hudson st, 7th floor, new york, ny 10013, usa
> v: 646-613-2074 * e: alex -at- relationalmail.com
>
>
>
>
--
---------------------------------------------------------
T H E I N T E R N E T M A R K E T I N G C E N T E R
---------------------------------------------------------
Gary Richardson [EMAIL PROTECTED]
System Administrator
---------------------------------------------------------
---------------------------------------------------------
qmail-mrtg-mess
tai64nfrac.c
On Tue, Oct 17, 2000 at 11:44:39AM +0200, Krzysztof Dabrowski wrote:
> Hello,
> A new version of qmail-smtpd-auth patch has been released.
> http://members.elysium.pl/brush/qmail-smtpd-auth/
looks nice. Do you know if it works with qmail+vmailmgr ?
(your doc only talk about vpopmail)
Olivier
--
_________________________________________________________________
Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland
At 18:41 2000-10-17 +0200, Olivier M. wrote:
>On Tue, Oct 17, 2000 at 11:44:39AM +0200, Krzysztof Dabrowski wrote:
> > Hello,
> > A new version of qmail-smtpd-auth patch has been released.
> > http://members.elysium.pl/brush/qmail-smtpd-auth/
>
>looks nice. Do you know if it works with qmail+vmailmgr ?
>(your doc only talk about vpopmail)
it should work with anything that is checkpassword compatible.
Kris
The cricial line in the spec file is
echo "$(ipmeprint)" | awk '{ print $0":allow,RELAYCLIENT=\"\""}'\
> qmail-smtpd
You probably were not directly on the internet when installing. The
README does warn you about this---as well as the spec file has
echo 'Please look at /etc/tcprules.d/qmail-smtpd'
echo 'and see if this is what you want in a tcprules file.'
In any case, this qmail-run package is outdated. Please use the
package (and the other related components) in
ftp://moni.msci.memphis.edu/pub/run/
See the README there.
Mate
Peter,
I think this is the way, but how could I check return value without
breaking pipe?
vdelivermail '' bounce-no-mailbox && [ $? == 0 ] && qmail-inject
[EMAIL PROTECTED]
Won't work because when I use && the pipe is broken
After all, it's really ugly
vdelivermail '' bounce-no-mailbox
[ $? == 0 ] && qmail-inject [EMAIL PROTECTED]
Would be more elegant, but I'm not sure if in the next pipe $? represents
return value of last pipe. And the pipe would be broken again.
If $? represent the last pipe exit code, I think it's possible to write
stuff like
#!/usr/bin/perl
$exit = `echo $?`
if($exit != 100) {exit(99);}
open INJECT, "vert-bar qmail-inject";
while(<>){
print INJECT;
}
exit(99)
As you probably already seen, my vertical bar is broken.
The problem is that I couldn't get the right value of $? inside the script.
Any further help?
Peter?
Thanks in advance
[]s
Davi
Peter Green escritas:
> also sprach davi:
> >
> > But this way EVERY message will also goes to postmaster.
> > I dunno what's the return value of vdelivermail in a bounce, but depending
> > it all messages will go to postmaster, except the ones that bounced
> > (according to qmail-command man page)
>
> From the vdelivermail man page:
>
> _________________________________________________________________
>
> RETURN VALUE
>
> 0 if all steps were successful. 100 if user is over quota or
> bounce-no-mailbox is set and no matching user is found.
> _________________________________________________________________
>
> You can check the return code of vdelivermail for 100 and, if found, deliver
> to the postmaster mailbox.
>
> /pg
> --
> Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
> ---
> > I've hacked the Xaw3d library to give you a Win95 like interface and it
> > is named Xaw95. You can replace your Xaw3d library.
> Oh God, this is so disgusting!
> (Seen on c.o.l.development.apps, about the "Win95 look-alike")
>
On Mon, Oct 16, 2000 at 09:45:40PM -0400, Peter Green wrote:
>No. A UID and GID is required at compile-time to build the vpopmail package.
What's the reason for doing this? I presume it's meant to be some sort
of security thing, but I just don't see it. I mean, you have to go through
extra gyrations to emulate getpwnam. I had actually gone in and started
building a package and making patches to change this behavior, but
got stalled on that.
Sean
--
"I'll thrash you like a Netscape process on a machine with 640K."
-- John Shipman, 1998
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
Peter Green wrote:
>
> [ send e-mail to [EMAIL PROTECTED] to subscribe to the vpopmail
> mailing list. ]
>
> also sprach ch:
> > Are there rpm packages available for vpopmail and qmailadmin?
>
> No. A UID and GID is required at compile-time to build the vpopmail package.
> Since there is no vpopmail RPM, I'm guessing that no one has gone through
> the trouble of making one for qmailadmin.
There is a guy, can't remember his name, that has vpopmail in the
freeBSD ports. freeBSD decided to allocate a uid/gid to vpopmail.
uid = 89, gid=89. It should be included in the next freeBSD CD
and on the ports list. Perhaps this uid/gid pair can be used
on linux too?
Ken Jones
http://www.inter7.com/vpopmail/
On Tue, Oct 17, 2000 at 01:47:54PM -0500, Ken Jones wrote:
>There is a guy, can't remember his name, that has vpopmail in the
>freeBSD ports. freeBSD decided to allocate a uid/gid to vpopmail.
>uid = 89, gid=89. It should be included in the next freeBSD CD
>and on the ports list. Perhaps this uid/gid pair can be used
>on linux too?
Yeah, I thought about doing that... With RedHat, you can request a specific
user ID with the "adduser" command. You could also set up the SRPM to add
the user/group so that you could build it. Seems like a kludge though.
Sean
--
Think.
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
Quick question has anyone run into any problems running Qmail or
vpopmail on Linux Redhat 7?
Thanks
Mike
Mike Jimenez wrote:
>
> Quick question has anyone run into any problems running Qmail or
> vpopmail on Linux Redhat 7?
>
> Thanks
> Mike
only that the new xinetd.cong has a changed format from the
old inetd.conf
--
Kind regards
Kevin Waterson
CEO OceaniaTLA
On Tue, Oct 17, 2000 at 01:49:33PM -0700, Mike Jimenez wrote:
>Quick question has anyone run into any problems running Qmail or
>vpopmail on Linux Redhat 7?
The building of RPMs sometimes stalls because of the automatic man
page compression program. Other than that, I've installed QMail on
several RH 7 machines. Haven't done vpopmail yet though.
Sean
--
[...] Premature optimization is the root of all evil.
-- Donald Knuth
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
Mike Jimenez wrote:
>
> Quick question has anyone run into any problems running Qmail or
> vpopmail on Linux Redhat 7?
>
> Thanks
> Mike
I compiled qmail and vpopmail on redhat 7 the other day.
Worked great.
ken Jones
inter7
Ken Jones wrote:
> I compiled qmail and vpopmail on redhat 7 the other day.
> Worked great.
>
> ken Jones
> inter7
How did you set you setup xinetd?
--
Kind regards
Kevin Waterson
On Wed, Oct 18, 2000 at 12:09:42PM +1100, [EMAIL PROTECTED] wrote:
>How did you set you setup xinetd?
I didn't touch it. As I mentioned, I used RPMs that include tcpserver
and set up SMTP and POP so that it doesn't need to run from inetd. My
system had no xinetd entries I had to remove, so I didn't touch them at
all.
Sean
--
I used to think that the brain was the most wonderful organ in
my body. Then I realized who was telling me this. -- Emo Phillips
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
[EMAIL PROTECTED] wrote:
>
> Ken Jones wrote:
>
> > I compiled qmail and vpopmail on redhat 7 the other day.
> > Worked great.
> >
> > ken Jones
> > inter7
>
> How did you set you setup xinetd?
I don't use xinetd for anything. In fact I usually turn it off.
I use tcpserver to run smtp and pop.
ken Jones
Qmail runs fine on my system, but i'm not familiar with vpopmail.
Use tcpserver btw instead of the xinetd...
Jeroen.
-----Original Message-----
From: Mike Jimenez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 10:50 PM
To: [EMAIL PROTECTED]
Subject: Linux7
Quick question has anyone run into any problems running Qmail or
vpopmail on Linux Redhat 7?
Thanks
Mike
I installed qmail+vpopmail+qmailadmin under xinetd in Red Hat 7 without big problems:
SMTP (taken from www.xinet.org FAQ):
service smtp{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = qmaild
id = smtp
server = /var/qmail/bin/tcp-env
server_args = /var/qmail/bin/qmail-smtpd
log_on_success -= DURATION USERID PID HOST EXIT
log_on_failure -= USERID HOST ATTEMPT RECORD
# Some interesting features
# only_from = 198.72.5.0
# redirect = 10.0.0.1 25
|
} |
POP3:
service pop3{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
id = pop3
server = /var/qmail/bin/tcp-env
server_args = /var/qmail/bin/qmail-popup hostname /home/vpopmail/bin/vchkpw (or /bin/checkpassword if you don't use vpopmail) /var/qmail/bin/qmail-pop3d Maildir
}
--------------------------------------------------------------------------------
Paco Gracia
Director T�cnico
Amira Sistemas
I know this may be a stupid question, but I cannot access the qmail home
page at the moment, so I figured I'd ask.
I'm setting up a new server using qmail-pop3d, previously I used qmail
with the "standard" ipop3d binary.
I'm running into a dilemma, I have it almost completely setup, but I get
this notification when I try to verify it works:
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user
-ERR syntax error
user egarff
+OK
pass <ommited>
-ERR this user has no $HOME/Maildir
Connection closed by foreign host.
I thought that qmail used default "Mailbox" instead of Maildir, here is
my inetd.conf entry:
pop3 stream tcp nowait root /var/qmail/bin/qmail-popup
qmail-popup <ommited hostname> /bin/checkpassword
/var/qmail/bin/qmail-pop3d Mailbox
all on one line.
Any ideas?
Thanks,
--
Eric Garff
MyComputer.com System Admin
Our Tools. Your Site.
Just remember, if the world didn't suck, we'd all fall off.
--
========= 17/10/00 15:06 by Eric Garff =========
| I know this may be a stupid question, but I cannot access the qmail home
| page at the moment, so I figured I'd ask.
|
| I'm setting up a new server using qmail-pop3d, previously I used qmail
| with the "standard" ipop3d binary.
I don't think ipop3d is standard for qmail but may be used
|
| I'm running into a dilemma, I have it almost completely setup, but I get
| this notification when I try to verify it works:
|
| Escape character is '^]'.
| +OK <[EMAIL PROTECTED]>
| user
| -ERR syntax error
| user egarff
| +OK
| pass <ommited>
| -ERR this user has no $HOME/Maildir
| Connection closed by foreign host.
|
| I thought that qmail used default "Mailbox" instead of Maildir, here is
| my inetd.conf entry:
for delivery maybe but no for pop3d
qmail-pop3d is only for Maildirs !
|
| pop3 stream tcp nowait root /var/qmail/bin/qmail-popup
| qmail-popup <ommited hostname> /bin/checkpassword
| /var/qmail/bin/qmail-pop3d Mailbox
|
--
Mira Tempír <[EMAIL PROTECTED]> ---[..čekit...]---
http://www.cekit.cz/ ------------ it's all about Internet
Ronny Haryanto wrote:
>
> On 13-Oct-2000, MaD dUCK wrote:
> > let's see if i can get it right this time.
>
> I just want to add a couple of things.
>
> > put every domain for which the qmail server is a MX record into
> > rcpthosts and locals. then configure selective relaying [...]
>
> You have two choices, either rcpthosts or morercpthosts, to specify
> what RCPT hosts to accept. You need to put the hosts in locals (or
> virtualdomains, depending on what you need) only if the machine is the
> final destination (i.e. don't do this on a backup MX machine).
>
> > if you were to have a virtual * as rcpthosts, then everyone could
> > relay through [...]
>
> Note that the term wildcard does not always mean *, and vice versa.
> 'man qmail-smtpd' gives the exact syntax.
>
> Ronny
--
Kind regards
Kevin Waterson
CEO OceaniaTLA
HI list.
I want to make the controls files (first virtualdomains) load directly from
a mysql database.
I found that all the reads to control/* files is done by
control.c
so I start modifing it. (attach included)
The first thing I want (before I try to do mysql things) is
hard-code a virtualdomain entry, only for testing.
I think the problem is in the stralloc_copys.
stralloc_copy(sa,&me);
stralloc_0(sa);
stralloc_cats(sa,"szysz.com.ar:alias");
I made a flagme=2 in the qmail-send call to read_file to virtualdomains to
identify this reading from others.
switch(control_readfile(&vdoms,"control/virtualdomains",2))
Now It does not work, but I don't get any errors, and don't read the
control/virtualdomain file.
If someone want's to help with this, please mail me.
I'm doing varius hacks to qmail to integrate with mysql, I've ready a
forwardmysql program.
Javier Szyszlican
web.net.ar
#include "readwrite.h"
#include "open.h"
#include "getln.h"
#include "stralloc.h"
#include "substdio.h"
#include "error.h"
#include "control.h"
#include "alloc.h"
#include "scan.h"
#include <mysql/mysql.h>
#include <stdio.h>
#define TRY_N 10
static char inbuf[64];
static stralloc line = {0};
static stralloc me = {0};
static int meok = 0;
MYSQL real_mysql, *mysql = NULL;
MYSQL_RES *result;
int Mysql_Reconnect()
{
int i ;
i = 0;
while(i<TRY_N) {
mysql_init(&real_mysql);
if (!(mysql=mysql_real_connect(&real_mysql, "localhost", "qmail", "qmail"
,NULL, 3306, NULL, 0))) {
mysql = NULL;
} else {
mysql = &real_mysql;
break;
}
i++;
sleep(3);
}
if (mysql != NULL) {
i = 0;
while(i<TRY_N) {
if (mysql_select_db(mysql, "subdominios")) {
} else {
return(0);
}
i++;
sleep(3);
}
}
return(-1);
}
void My_Mysql_Close(int keepopen_flag)
{
if(keepopen_flag == 0) {
if (mysql != NULL) {
mysql_close(mysql);
}
mysql = NULL;
}
}
static void striptrailingwhitespace(sa)
stralloc *sa;
{
while (sa->len > 0)
switch(sa->s[sa->len - 1])
{
case '\n': case ' ': case '\t':
--sa->len;
break;
default:
return;
}
}
int control_init()
{
int r;
r = control_readline(&me,"control/me");
if (r == 1) meok = 1;
return r;
}
int control_rldef(sa,fn,flagme,def)
stralloc *sa;
char *fn;
int flagme;
char *def;
{
int r;
r = control_readline(sa,fn);
if (r) return r;
if (flagme) if (meok) return stralloc_copy(sa,&me) ? 1 : -1;
if (def) return stralloc_copys(sa,def) ? 1 : -1;
return r;
}
int control_readline(sa,fn)
stralloc *sa;
char *fn;
{
substdio ss;
int fd;
int match;
fd = open_read(fn);
if (fd == -1) { if (errno == error_noent) return 0; return -1; }
substdio_fdbuf(&ss,read,fd,inbuf,sizeof(inbuf));
if (getln(&ss,sa,&match,'\n') == -1) { close(fd); return -1; }
striptrailingwhitespace(sa);
close(fd);
return 1;
}
int control_readint(i,fn)
int *i;
char *fn;
{
unsigned long u;
switch(control_readline(&line,fn))
{
case 0: return 0;
case -1: return -1;
}
if (!stralloc_0(&line)) return -1;
if (!scan_ulong(line.s,&u)) return 0;
*i = u;
return 1;
}
int control_readfile(sa,fn,flagme)
stralloc *sa;
char *fn;
int flagme;
{
substdio ss;
int fd;
int match;
char buf1[1024];
MYSQL_ROW row;
char *b;
if (!stralloc_copys(sa,"")) return -1;
if (flagme == 2) {
/*
Mysql_Reconnect();
sprintf(buf1, "SELECT url FROM clientes");
mysql_query(mysql, buf1) ;
result=mysql_store_result(mysql);
row=mysql_fetch_row(result);
sprintf(buf1,"%s:alias",row[0]);
stralloc_cat(sa,&buf1);
*/
stralloc_copy(sa,&me);
stralloc_0(sa);
stralloc_cats(sa,"szysz.com.ar:alias");
return 1;
//mysql_free_result(result);
//My_Mysql_Close(0);
} else {
fd = open_read(fn);
if (fd == -1)
{
if (errno == error_noent)
{
if (flagme && meok)
{
if (!stralloc_copy(sa,&me)) return -1;
if (!stralloc_0(sa)) return -1;
return 1;
}
return 0;
}
return -1;
}
substdio_fdbuf(&ss,read,fd,inbuf,sizeof(inbuf));
for (;;)
{
if (getln(&ss,&line,&match,'\n') == -1) break;
if (!match && !line.len) { close(fd); return 1; }
striptrailingwhitespace(&line);
if (!stralloc_0(&line)) break;
if (line.s[0])
if (line.s[0] != '#')
if (!stralloc_cat(sa,&line)) break;
if (!match) { close(fd); return 1; }
}
close(fd);
}
return -1;
}
On Tue, 17 Oct 2000, Javier Szyszlican wrote:
> HI list.
>
> I want to make the controls files (first virtualdomains) load directly from
> a mysql database.
Why?
The files read by qmail-send are read into memory and
are not read again until qmail-send is either restarted or receives a
SIGHUP. A simpler approach might be to generate virtualdomains from
your database and then send qmail-send a SIGHUP.
Other control files are read by programs such as qmail-smtpd, qmail-inject
and qmail-remote. These programs read the control files once, perform
their actions and then exit. Again a simpler approach would be to
generate these files from your database. The only problem I can see
with this method is any race conditions where files are incomplete,
but this can be avaoided by writing to a temporary file and then doing
a rename().
--
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
http://www.e-smith.org (development) http://www.e-smith.com (corporate)
Phone: +1 613 368 4398 Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada
"If you kill all your unhappy customers, you'll only have happy ones left"
How do I check for open relay?
I saw something once with a simple test.
could someone please point me to something
similar
--
Kind regards
Kevin Waterson
CEO OceaniaTLA
http://www.abuse.net/relay.html is a good way.
Dave
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 7:13 PM
To: [EMAIL PROTECTED]
Subject: open relay test
How do I check for open relay?
I saw something once with a simple test.
could someone please point me to something
similar
--
Kind regards
Kevin Waterson
CEO OceaniaTLA
I am having problems stopping relaying.
I created the file /etc/tcprules.d/qmail-smtpd
and in there I put
203.41.132.:allow,RELAYCLIENT=""
203.42.53.:allow,RELAYCLIENT=""
then
cd /etc/tcprules.d/
and
tcprules qmail-smtpd.cdb qmail-smtpd.temp < qmail.smptd
and I get no errors
in /var/qmail/control/rcpthosts I have
oceania.net
.oceania.net
but still, It allows relaying according to
the tests on abuse.net/relay.html
All replies greatfully recieved
Kind regards
Kevin Waterson
Hello,
I would appreciate any help. I simly can not make relay-ctrl-2.5 to work.
Bellow is the complete listing of everything I have done, installed, etc. Hope
is specific enough.
Thank you for your help. Hans.
--------------------------------------------------
System
RedHat Linux 6.3
Qmail 1.03
checkpoppasswd (to validate multiple users with one system account)
relay-ctrl-2.5
--------------------------------------------------
Things I noticed; afteter installing, the relay-ctrl directories were not
created (i created them by hand).
one in /etc the other in /var/spool
Symptoms:
I can read email, but after de pop3 conection, no files are added to the
/var/spool/relay-ctrl.
And the tcp-smtp file is not modified with the new IP. No errors are logged
in any file. So when I try to send email from an IP that is not listed in my
tcp-smtp file, I receive the known message "Sorry the domain is not listed in my
list of recepient hosts".
The cron file for * * * * * /usr/sbin/relay-ctrl-age is working
fine, and istalled.
I created the configurations files in /etc/relay-ctrl. The files and its
contest I describe them below:
File
Content
expiry 900
rule :allow,RELAYCLIENT=''
rulesdir /etc
smtpcdb tcp.smtp.cdb
smtprules tcp.smtp
spooldir /var/spool/relay-ctrl
tcprules /usr/local/bin/tcprules
ls -l /etc
-rw-r--r-- 1 root
root 114 Oct 17 08:28
tcp.smtp -rw-r--r-- 1 root
root 2226 Oct 17 08:37
tcp.smtp.cdb drwxr-xr-x 2 root
qmail 4096 Oct 17 08:26
relay-ctrl
ls -l /etc/relay-ctrl
-rw-r--r-- 1 root
qmail 4 Oct 17 06:41
expiry -rw-r--r-- 1 root
qmail 22 Oct 17 08:26
rule -rw-r--r-- 1 root
qmail 5 Oct 17 06:35
rulesdir -rw-r--r-- 1 root
qmail 13 Oct 17 06:36
smtpcdb -rw-r--r-- 1 root
qmail 9 Oct 17 06:36
smtprules -rw-r--r-- 1 root
qmail 22 Oct 17 06:37
spooldir -rw-r--r-- 1 root
qmail 24 Oct 17 06:43
tcprules
ls -l /var/spool
drwxr-xr-x 2 root
root 4096 Oct 17 06:15
relay-ctrl
ls -l /usr/local/bin
-rwxr-xr-x 1 root
root 16180 Aug 21 18:07 tcprules
ls -l /usr/sbin
-rwxr-xr-x 1 root
root 16258 Oct 17 06:55
relay-ctrl-age -rwsr-xr-x 1 root
root 14250 Oct 17 06:55
relay-ctrl-allow
tcp-smtp content:
127.:allow,RELAYCLIENT=""
qmail script, content:
at the beginign:
tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup linux.ags.com.mx
\ /bin/checkpoppassword relay-ctrl-allow /var/qmail/bin/qmail-pop3d Maildir
2>&1 | \ /var/qmail/bin/splogger pop3d &
case $1 ...
...
cdb) tcprules /etc/tcp.smtp.cdb
/etc/tcp.smtp.tmp < /etc/tcp.smtp chmod 644
/etc/tcp.smtp* echo "Rele�do
/etc/tcp.smtp." ;;
I thick this should be all, I have missed some thing?
|
On Tue, Oct 17, 2000 at 08:55:56PM -0600, Hans Peyrot wrote:
>RedHat Linux 6.3
^^^
Mm-kay...
>tcpserver -v -R 0 pop3 /var/qmail/bin/qmail-popup linux.ags.com.mx \
>/bin/checkpoppassword relay-ctrl-allow /var/qmail/bin/qmail-pop3d Maildir 2>&1 | \
>/var/qmail/bin/splogger pop3d &
Did you restart the POP server after making these changes? I just did a qmail
install using the SRPMs at http://www.em.ca/~bruceg/ and the relay-ctrl-2.5
RPM worked fine. It even modifies the files automaticly -- just restart
the POP server.
Sean
--
The only people who have anything to fear from free software
are those whose products are worth even less. -- David Emery
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
We finally got around sometime to set up an OpenBSD 2.7 box and
put up qmail 1.03 on it.
It didn't take us long to notice the memory footprint difference. The
observation always ruined my appetite for dinner, and I now have quite
a dim view towards Solaris :(
Below is a short tabulation of what we have seen:
-------------------------------------------------------------------
vsz The total size of the process in virtual memory,
in kilobytes.
rss The resident set size of the process, in kilo-
bytes.
[Solaris8]> /bin/ps -o vsz,rss,comm -e
VSZ RSS COMMAND
920 568 multilog
904 552 qmail-clean
920 512 qmail-lspawn
1616 864 qmail-pop3d
1592 760 qmail-popup
912 560 qmail-rspawn
1192 816 qmail-send
1808 1064 qmail-smtpd
904 504 supervise
936 528 svscan
896 376 tai64n
1680 1168 tcpserver
[OpenBSD2.7]> /bin/ps -o vsz,rss,comm -ax
VSZ RSS UCOMM
48 408 multilog
36 372 qmail-clean
44 404 qmail-lspawn
40 400 qmail-pop3d
24 320 qmail-popup
40 392 qmail-rspawn
108 448 qmail-send
80 416 qmail-smtpd
24 412 supervise
68 392 svscan
16 268 tai64n
60 500 tcpserver
-------------------------------------------------------------------
The Solaris 8 runs in 32bit mode, on a UltraSPARC IIi Netra 105 box
with 512MB RAM. The OpenBSD runs on a Dell P5MMX166 64 MB RAM.
I recall (but I can't find it right now) that Dr. Bernstein mentioned
somewhere in one of his docs that bloating executable sizes was one
"trait" of Solaris. I didn't know it's this bad! 8-(
May I ask my fellow qmail admins/hacks the following:
o can you confirm my observations?
o can I do anything to reduce the footprints of Solaris executables?
It's really depressing to compare the interactive responses of telnet
host 25 of the two setups above. The Sun box runs at 440Mhz, but
owing to the large process size, it's actually "visibly" slower than
that of a lowly PeeCee running at 166Mhz :(
After the above observations, I don't think I will setup a linux box
soon for tinkering. Too much too soon is not good for health :>
Regards,
Chin Fang
[EMAIL PROTECTED]
Here is the sizes on my Mandrake 7.1 box:
VSZ RSS COMMAND
1084 376 qmail-send
1052 412 splogger
1040 320 qmail-lspawn
1040 324 qmail-rspawn
1032 328 qmail-clean
As you can see, my footprints are even smaller than your freebsd box...
dunno why though, i didn't strip the executables after making...
/Martin
[EMAIL PROTECTED] wrote:
>
> We finally got around sometime to set up an OpenBSD 2.7 box and
> put up qmail 1.03 on it.
>
> It didn't take us long to notice the memory footprint difference. The
> observation always ruined my appetite for dinner, and I now have quite
> a dim view towards Solaris :(
>
> Below is a short tabulation of what we have seen:
> -------------------------------------------------------------------
> vsz The total size of the process in virtual memory,
> in kilobytes.
> rss The resident set size of the process, in kilo-
> bytes.
>
> [Solaris8]> /bin/ps -o vsz,rss,comm -e
> VSZ RSS COMMAND
> 920 568 multilog
> 904 552 qmail-clean
> 920 512 qmail-lspawn
> 1616 864 qmail-pop3d
> 1592 760 qmail-popup
> 912 560 qmail-rspawn
> 1192 816 qmail-send
> 1808 1064 qmail-smtpd
> 904 504 supervise
> 936 528 svscan
> 896 376 tai64n
> 1680 1168 tcpserver
>
> [OpenBSD2.7]> /bin/ps -o vsz,rss,comm -ax
> VSZ RSS UCOMM
> 48 408 multilog
> 36 372 qmail-clean
> 44 404 qmail-lspawn
> 40 400 qmail-pop3d
> 24 320 qmail-popup
> 40 392 qmail-rspawn
> 108 448 qmail-send
> 80 416 qmail-smtpd
> 24 412 supervise
> 68 392 svscan
> 16 268 tai64n
> 60 500 tcpserver
> -------------------------------------------------------------------
>
> The Solaris 8 runs in 32bit mode, on a UltraSPARC IIi Netra 105 box
> with 512MB RAM. The OpenBSD runs on a Dell P5MMX166 64 MB RAM.
>
> I recall (but I can't find it right now) that Dr. Bernstein mentioned
> somewhere in one of his docs that bloating executable sizes was one
> "trait" of Solaris. I didn't know it's this bad! 8-(
>
> May I ask my fellow qmail admins/hacks the following:
>
> o can you confirm my observations?
> o can I do anything to reduce the footprints of Solaris executables?
>
> It's really depressing to compare the interactive responses of telnet
> host 25 of the two setups above. The Sun box runs at 440Mhz, but
> owing to the large process size, it's actually "visibly" slower than
> that of a lowly PeeCee running at 166Mhz :(
>
> After the above observations, I don't think I will setup a linux box
> soon for tinkering. Too much too soon is not good for health :>
>
> Regards,
>
> Chin Fang
> [EMAIL PROTECTED]
Hi there,
I have seen the question about dots in "LOCAL" email address asked (and
answered) about a thousand times, but that is not what I'm trying to do.
I have a qmail box that is acting as an SMTP hub for our company and any
inbound mail that has "."'s in any of the To: addresses (not the internal
recipient as we don't have "." in our email addresses), the address is
being stripped at the @.
So, the mail gets to me okay, but I can't "Reply-to-all", because the email
address [EMAIL PROTECTED] becomes first.last@ in my mail client.
The only way that I have "proved" that this is happening in qmail is that:
1) I have switched to sendmail and all is fine
2) I know that qmail messes about with dot's for a reason
I can't use aliases for this as I have no idea what address there might be
(obviously)
Am I missing something obvious here, or am I just using qmail for something
it isn't supposed to do..
As I say I've tried to search the list but there has been so many people
ask about local delivery of "."ed addresses it's impossible
Cheers,
Bevan.
P.S. sorry if you got this lot's of times but my email client crashed every
time I sent it
On Wed, Oct 18, 2000 at 04:46:08PM +1300, [EMAIL PROTECTED] wrote:
> Hi there,
>
> I have seen the question about dots in "LOCAL" email address asked (and
> answered) about a thousand times, but that is not what I'm trying to do.
>
> I have a qmail box that is acting as an SMTP hub for our company and any
> inbound mail that has "."'s in any of the To: addresses (not the internal
> recipient as we don't have "." in our email addresses), the address is
> being stripped at the @.
>
> So, the mail gets to me okay, but I can't "Reply-to-all", because the email
> address [EMAIL PROTECTED] becomes first.last@ in my mail client.
> The only way that I have "proved" that this is happening in qmail is that:
>
> 1) I have switched to sendmail and all is fine
> 2) I know that qmail messes about with dot's for a reason
Please divulge the relevant entries from your logs (or what do the logs say?)
PGP signature
Does sendmail have relaying on by default?
I think it may be answer to our problems
--
Kind regards
Kevin Waterson
>>>>> "kevin" == kevin <[EMAIL PROTECTED]> writes:
kevin> Does sendmail have relaying on by default? I think it may
kevin> be answer to our problems -- Kind regards
The last time I used sendmail...yes. But if you have your words mixed
and you mean qmail, then providing you follow either Life With qmail
(how is that an acronym without a capital q? :P All those discussions
about qmail not having a capital q, and the qmail logo DOES have a
capital Q...what is this world coming to? :) ), or you follow the
INSTALL instructions, then qmail isn't an open relay. HOWEVER, on that
note, I have heard rumours that the qmail RPMs are by default open
relays.
So...
Enjoy
--
=======================================================
|User: |Href: |Status: |
-------------------------------------------------------
|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
=======================================================
Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003
I have qmail on Red Hat 6.2. My network have 5
PC. On workstation OS is win98. I have PPP link to internet (via PC when is
linux and qmail)
When I want to send (or receive) messages , I must
wait 3-4 min. for replay from my mail-server.
My network is OK and PPP too.
I use daemontools and ucspi-tcp.
Why I mast wait longa time for
replay??????
Thanks!
Sinisa Malesevic
|
|
hi:
we have two mail severs use qmail(+freebsd) to send
mail(ezmlm)
but in this few days ,it often shutdown.
show:
db>
Fatal trap 12: page fault while in kernel
mode
fault virtual address =0x18
fault code =supervisor write,page not
present
current proccess=19895(qmail-queue)
why?? we use PC SERVER ,connect local 40,remote
400
|
hello friends
i am trying to run 2 instances of qmail on same mechine one
/var/qmail (qmail-smtpd listning on port 25),
now for this qmail i have created /var/qmail/control/smtproutes
hotmail.com:host.domain.com:26
yahoo.com:host.domain.com:26
and the other
/var/qmail2/ ( qmail-smtpd listning on port 26)
but /var/qmail is not atall sending any mails to /var/qmail2's smtpd
which is running and listning on port 25
i have restarted both the qmail instances , but its still not working ,
please tell me where i have done a mistake ;
thanks and regards
Prashant Desai
>>>>> "reach" == reach prashant <[EMAIL PROTECTED]> writes:
reach> hello friends i am trying to run 2 instances of qmail on
reach> same mechine one
Oh no! Its you again!
reach> /var/qmail (qmail-smtpd listning on port 25),
reach> now for this qmail i have created
reach> /var/qmail/control/smtproutes
reach> hotmail.com:host.domain.com:26 yahoo.com:host.domain.com:26
reach> and the other
reach> /var/qmail2/ ( qmail-smtpd listning on port 26)
reach> but /var/qmail is not atall sending any mails to
reach> /var/qmail2's smtpd which is running and listning on port
reach> 25
Don't you mean /var/qmail2's smtpd which should be listening to port
26?
reach> i have restarted both the qmail instances , but its still
reach> not working ,
I'm no expert, but I'd say you need to change a few things before you
compile qmail to make it work in a directory other than /var/qmail. Oh
and also logs (NOT complete ones this time, just of what happens), the
relevant config files in control (both control dirs) would be
good...no guarantees I can help you (I'm kind of busy) but someone can
if you give some more info.
--
"I wonder what Jesus would do if HE had to reload Windows 95 for the
eighth time today ?"
- Mirabour Gilbride