Ian Roberts | 1 Aug 2003 03:23
Picon

qmail-send logs??

I am having troubles getting qmail to run, the deamons show that they are up...

[PowerMacG4:/var/qmail/bin] iroberts# qmailctl start
Starting qmail
[PowerMacG4:/var/qmail/bin] iroberts# qmailctl stat
/service/qmail-send: up (pid 8576) 7 seconds
/service/qmail-send/log: up (pid 498) 2402 seconds
/service/qmail-smtpd: up (pid 8809) 0 seconds
/service/qmail-smtpd/log: up (pid 501) 2402 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
[PowerMacG4:/var/qmail/bin] iroberts# qmailctl stop
Stopping qmail...
  qmail-smtpd
  qmail-send

 I have followed the instructions in qmail handbook.  The problem Im experiencing is that a few processes
(id, sh) are constantly changing PID and keep on getting higher in the 10,000's.  I cannot send mail to local
(im testing it locally first).  I have errors in the qmail-send logs which suggest that there is a problem
with the control files?? (im very new to qmail.....But here is the data

(qmail -send log)
 <at> 400000003f29b8173a56595c alert: cannot start: unable to read controls
 <at> 400000003f29b8180b1d38f4 alert: cannot start: unable to read controls
 <at> 400000003f29b81820296fc4 alert: cannot start: unable to read controls
 <at> 400000003f29b81835790894 alert: cannot start: unable to read controls
 <at> 400000003f29b8190a55030c alert: cannot start: unable to read controls
 <at> 400000003f29b8191dcab38c alert: cannot start: unable to read controls
 <at> 400000003f29b8193452766c alert: cannot start: unable to read controls
 <at> 400000003f29b81a0650822c alert: cannot start: unable to read controls
(Continue reading)

Erwin Hoffmann | 1 Aug 2003 09:51
Picon

Re: spamcontrol question..

Hi,

At 14:35 31.07.2003 -0400, Brian wrote:
>When do you think 2.2 would be ready?
>
>Should I wait (for SPAMCONTROL 2.2) or just patch things on my own?

Well. Depends on how urgent you need it.

Currently, my "roadmap" for SPAMCONTROL is as follows:

2.1 Consolidation of SMPT-Auth (fail-safe, better logging, compliance with checkpasswd, useful
cmd5checkpw ...)

2.2 Integration of STARTTLS (qmail-smtpd, qmail-remote).

3.0. Whitelist feature ("goodrcptto"); in particular to reduce bounces in favor of SMTP protocol errors
(to cope with spam attacks using lexical local Forwarding-Path approach).

Thus, I dont think, SPAMCONTROL 2.2 will be available before end of 2003 ...
There are too many open questions:

Q1: What about Dan's qmail 1.04?
Q2: How to implement useful SMTP Authentication ?; qmail-users (?), Auth for qmail-remote (?) 
Q3: Crypto libs (openssh)?

Better to take the working pieces of SPAMCONTROL 2.0.7 (and my suggestion to replace the "sizelimit"
function posted earlier to the list) and add STARTTLS by hand.

To patch qmail and have a working feature is one part; to make a good design and to release a sustainable and
(Continue reading)

Stefan Schmidlin | 1 Aug 2003 12:32
Picon

Re: qmail-send logs??

Hi Ian,

> [PowerMacG4:/var/qmail/bin] iroberts# qmailctl stat
> /service/qmail-send: up (pid 8576) 7 seconds

only 7 secs up?

> /service/qmail-smtpd: up (pid 8809) 0 seconds

here is a real problem, check the script as in lwq.

>  I have followed the instructions in qmail handbook.  The problem Im 
> experiencing is that a few processes (id, sh) are constantly changing 
> PID and keep on getting higher in the 10,000's.  I cannot send mail to 
> local (im testing it locally first).  I have errors in the qmail-send 
> logs which suggest that there is a problem with the control files?? 
> (im very new to qmail.....But here is the data

you might check and double-check all run files to avoid the 0-seconds 
above.

>  <at> 400000003f29b8173a56595c alert: cannot start: unable to read controls

you might need to check the ownership / permissions on the folders / 
files in /var/qmail/control...

stef

Stefan Schmidlin | 1 Aug 2003 12:32
Picon

Re: qmail-send logs??

Hi Ian again,

> [PowerMacG4:

as you are using os x: make sure ps -ax | grep qmail does not show 
qmail-start as a process.
this happens on os x accidentally.
you might the restart your mac or kill qmail-send - wich helps normally 
and can be
scripted to keep qmail up.

stef

Manvendra Bhangui | 1 Aug 2003 14:42
Picon
Favicon

Re: Forward to IP in qmail


I have not tried this. But I think you can try the code below. Write it as
a shell script and put it in your .qmail

status_line=`qmail-remote [128.32.183.163] $SENDER $RECIPIENT`

case $status_line in
	Z*)
	exit 111
	;;
	D*)
	exit 110
	;;
	K*)
	exit 0
	;;
esac
exit 0

As I said earlier, I have not tried this myself. So you can experiment and
add the other cases

Regards Manvendra
On Wed, 30 Jul 2003 14:30:08 +0530
John <John1972 <at> HotPOP.com> wrote:

> Hi everybody ,
> 
>     Even i had encountered this need recently ,And i did think of the
>     wrapper
(Continue reading)

Charles Cazabon | 1 Aug 2003 16:27
Picon

Re: qmail-send logs??

Ian Roberts <ianto_panto <at> mac.com> wrote:
> 
>  I have followed the instructions in qmail handbook.
[...]
> (qmail -send log)
>  <at> 400000003f29b8173a56595c alert: cannot start: unable to read controls

Unfortunately, you made at least one major mistake in installing
(ownership/permissions of a critical directory).  When you make one mistake
like this, you usually make more than one -- so you should go back to the
beginning and verify each step of the installation process.

Charles
--

-- 
---------------------------------------------------------------------------
Charles Cazabon                                <qmail <at> discworld.dyndns.org>
GPL'ed software available at:         http://www.qcc.ca/~charlesc/software/
Read http://www.qcc.ca/~charlesc/writings/12-steps-to-qmail-list-bliss.html
---------------------------------------------------------------------------

Chris Orr | 1 Aug 2003 18:03

qmail -> sendmail conversion

Hey all,

Im converting from sendmail to qmail and Im running in to a problem.
The sendmail virtusers table is able to forward emails for an entire
domain to a certain user. ex:  <at> domain.com blah

I have fastforward installed. In my aliases file, I have  <at> domain.com: blah
This works fine if someone sends an email to notlocaluser <at> domain.com, but
when someone emails localuser <at> domain.com, it does not get forwarded to
blah like it did with sendmail's virtuser table, and instead gets dropped
into localuser's mailbox.

I have tried using controls/virtualdomains table as follows:

controls virtualdomains:
domain.com:blah

~alias/.qmail-blah-default
blah

When I send an email to asdf <at> domain.com, this ends up going to
blah-asdf <at> domain.com...like it ignores the .qmail-blah-default file.

Any suggestions?
Thanks in advance!

-chris

Peter Samuel | 1 Aug 2003 18:17
Favicon

Re: qmail -> sendmail conversion

On Fri, 1 Aug 2003, Chris Orr wrote:

> Hey all,
> 
> Im converting from sendmail to qmail and Im running in to a problem.
> The sendmail virtusers table is able to forward emails for an entire
> domain to a certain user. ex:  <at> domain.com blah
> 
> I have fastforward installed. In my aliases file, I have  <at> domain.com: blah
> This works fine if someone sends an email to notlocaluser <at> domain.com, but
> when someone emails localuser <at> domain.com, it does not get forwarded to
> blah like it did with sendmail's virtuser table, and instead gets dropped
> into localuser's mailbox.
> 
> I have tried using controls/virtualdomains table as follows:
> 
> controls virtualdomains:
> domain.com:blah

This says that mail for any user at doamin.com will be handled by the
user with account name blah according to the dot-qmail file
~blah/.qmail-user

> 
> ~alias/.qmail-blah-default
> blah

And this is a file used for the alias user, not for the blah user.

You have 2 options
(Continue reading)

Tomasz Nidecki | 1 Aug 2003 18:21
X-Face

Re: qmail -> sendmail conversion

Chris Orr <list <at> manual-override.net> wrote in
news:20030801104610.W13787 <at> manual-override.net: 

> Any suggestions?

Try doing it the following way:

1. create a subdirectory, for example /var/qmail/alias/blah
2. create a system user called, for example blah, with the above 
directory as the home directory
3. leave domain.com:blah in your virtualdomains file
4. put a .qmail-default file in the subdirectory mentioned in step 1.

--

-- 
tomasz 'tonid' nidecki, zoliborz, warszawa, poland
tonid <at> tonid.net http://tonid.net http://endemic.org
'nie przejmuj sie, przytul glonojada' (c)hubertus

Chris Orr | 1 Aug 2003 19:01

Re: qmail -> sendmail conversion

On Fri, 1 Aug 2003, Tomasz Nidecki wrote:

> Try doing it the following way:
>
> 1. create a subdirectory, for example /var/qmail/alias/blah
> 2. create a system user called, for example blah, with the above
> directory as the home directory
> 3. leave domain.com:blah in your virtualdomains file
> 4. put a .qmail-default file in the subdirectory mentioned in step 1.

I -just- tried that. Its almost like its not reading the .qmail-default
file in ~alias.

In the /var/log/maillog file, it is showing that when I email
asfd <at> domain.com, it goes to blah-asfd <at> domain.com. I understand now that
it is supposed to do that, but the .qmail-default file in ~blah says to forward
it off to another address.

Im not getting any errors about permissions in maillog, and my permissions
look fine. They are world readable as of right now.

Any ideas?
Thanks!
-chris


Gmane