Oliver Block | 6 Apr 2010 20:54
Picon

temporary rejection

Hello everyone,

I wonder if and how its possible to make qmail temporarily reject mail
for a certain virtual host. An alternative would be to forward all the
messages to another mail server for storage for a single virtual domain.

I would be grateful if somone could give me a hint how to accomplish it
or where to look for documentation.

Best regards,

Oliver Block

Dieter Woerz | 6 Apr 2010 21:49
Picon

Problem configuring qmail

Hello,

I am having a problem here. I had a qmail installation set up and running for a few years. Now a disk crash
ruined the whole thing, for sure the backup is not readable :-( and I cannot get it running again.

I have the following configuration:

Clients (various Mail clients, SMTP, IMAPS) -----------v
					|	Mail server (Sendmail)
					|	       ^
					|	       v
					\----->	Qmail-Server
						  v        ^....^      
						internet   mail-domains

The setup was the following:
Mail comes into the Qmail-Server via SMTP and fetchmail/SMTP from different domains.
The qmail-server delivers to the mail-server with the post boxes.
The clients fetch their mail from mail-Server with imap(s).
They send their mail directly to the qmail-Server using SMTP.
The qmail-server delivers mail using my providers SMTP-Gateway, which requires AUTH extension, which
works with no? problem. I am using SMTP-AUTH send patch from Bjoern Kalkbrenner.

What should work:
Mails from one client to every other.
Mails from the client to the outside world.
Mails from the outside world (various domains) to the users.

Now to the problems:
Every Mail I try to send from a client to another client gets sent to the provider.
(Continue reading)

qmail | 7 Apr 2010 10:19

Re: temporary rejection

On Tue, 06 Apr 2010 20:54:30 +0200,
 Oliver Block <tellme <at> oliver-block.eu> wrote:
> Hello everyone,
>
> I wonder if and how its possible to make qmail temporarily reject mail
> for a certain virtual host. An alternative would be to forward all the
> messages to another mail server for storage for a single virtual domain.

Separate delivery by MX record in DNS. Point the MX record of the
"virtual domain" to your secondary storage server (which needs to have
a configured SMTP daemon running on port 25).

You could also add a second IP to your primary qmail and run separate
tcpserver instances.

Regards
--

-- 
Robert Sander                       Senior Manager Information Systems
Epigenomics AG     Kleine Praesidentenstr. 1     10178 Berlin, Germany
phone:+49-30-24345-0                              fax:+49-30-24345-555
http://www.epigenomics.com               robert.sander <at> epigenomics.com

cenood | 7 Apr 2010 12:23
Picon

Stop multilog

Hi,
I'm on gentoo 2006 64bits

My qmail initialization script looks like this :

    ebegin "Starting Smtp"
    env - PATH="/var/qmail/bin:/usr/local/bin" CHKUSER_START="DOMAIN" \
        tcpserver -v -H -R -x /etc/tcp.smtp.cdb -c100 -u508 -g503 0 smtp \
        /var/qmail/bin/qmail-smtpd 2>&1 \
        | /usr/local/bin/tai64n \
        | /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog
s500000 n60 /var/log/qmailsmtp/ &
    eend $?

I want to stop this process because i think a service is reloading
this process when i kill it
qmaill    2512  0.0  0.0   2568   404 ?        S    Apr02   0:01
/usr/local/bin/multilog s500000 n60 /var/log/qmailsmtp/

I don't know which service can stop multilog
If someone could help me...

Thanks !

Regards
C.

Oliver Block | 7 Apr 2010 16:51
Picon

Re: temporary rejection

Unfortunately, DNS modification is no option. I forgot to mention that.

qmail <at> ml.epigenomics.com schrieb:
> On Tue, 06 Apr 2010 20:54:30 +0200,
>  Oliver Block <tellme <at> oliver-block.eu> wrote:
>   
>> Hello everyone,
>>
>> I wonder if and how its possible to make qmail temporarily reject mail
>> for a certain virtual host. An alternative would be to forward all the
>> messages to another mail server for storage for a single virtual domain.
>>     
>
> Separate delivery by MX record in DNS. Point the MX record of the
> "virtual domain" to your secondary storage server (which needs to have
> a configured SMTP daemon running on port 25).
>
> You could also add a second IP to your primary qmail and run separate
> tcpserver instances.
>
> Regards
>   

qmail | 7 Apr 2010 21:53

Re: temporary rejection

On Wed, 07 Apr 2010 16:51:48 +0200,
 Oliver Block <tellme <at> oliver-block.eu> wrote:
> Unfortunately, DNS modification is no option. I forgot to mention that.

So you run a mail server and have no control over the DNS? That's sad.

Regards
--

-- 
Robert Sander

Christopher Chan | 8 Apr 2010 04:06
Picon

Re: Stop multilog

On Wednesday, April 07, 2010 06:23 PM, cenood wrote:
> Hi,
> I'm on gentoo 2006 64bits
>
> My qmail initialization script looks like this :
>
>      ebegin "Starting Smtp"
>      env - PATH="/var/qmail/bin:/usr/local/bin" CHKUSER_START="DOMAIN" \
>          tcpserver -v -H -R -x /etc/tcp.smtp.cdb -c100 -u508 -g503 0 smtp \
>          /var/qmail/bin/qmail-smtpd 2>&1 \
>          | /usr/local/bin/tai64n \
>          | /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog
> s500000 n60 /var/log/qmailsmtp/&
>      eend $?
>
>
> I want to stop this process because i think a service is reloading
> this process when i kill it
> qmaill    2512  0.0  0.0   2568   404 ?        S    Apr02   0:01
> /usr/local/bin/multilog s500000 n60 /var/log/qmailsmtp/
>
> I don't know which service can stop multilog
> If someone could help me...

Why on earth do you want to do that? qmail-smtpd will block after its 
log buffers are full.

Kyle Wheeler | 8 Apr 2010 22:07

Re: Problem configuring qmail


On Tuesday, April  6 at 09:49 PM, quoth Dieter Woerz:
>I have the following configuration:
>
>Clients (various Mail clients, SMTP, IMAPS) -----------v
>					|	Mail server (Sendmail)
>					|	       ^
>					|	       v
>					\----->	Qmail-Server
>						  v        ^....^ 
>						internet   mail-domains

Meaning... (this is a guess) your clients could choose whether to use 
the sendmail server or the qmail server as their outbound relay?

>Mail comes into the Qmail-Server via SMTP and fetchmail/SMTP from 
>different domains.
>The qmail-server delivers to the mail-server with the post boxes.

And those post boxes are where? The sendmail machine?

>The clients fetch their mail from mail-Server with imap(s).
>They send their mail directly to the qmail-Server using SMTP.
>The qmail-server delivers mail using my providers SMTP-Gateway, which requires AUTH extension, which
works with no? problem. I am using SMTP-AUTH send patch from Bjoern Kalkbrenner.

Okay. This seems a little overly complicated, but <shrug>.

>What should work:
>Mails from one client to every other.
(Continue reading)

Kyle Wheeler | 8 Apr 2010 21:54

Re: Stop multilog


On Wednesday, April  7 at 12:23 PM, quoth cenood:
>My qmail initialization script looks like this :
>
>    ebegin "Starting Smtp"
>    env - PATH="/var/qmail/bin:/usr/local/bin" CHKUSER_START="DOMAIN" \
>        tcpserver -v -H -R -x /etc/tcp.smtp.cdb -c100 -u508 -g503 0 smtp \
>        /var/qmail/bin/qmail-smtpd 2>&1 \
>        | /usr/local/bin/tai64n \
>        | /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog
>s500000 n60 /var/log/qmailsmtp/ &
>    eend $?

If I'm reading that correctly, you've told it to spawn a new instance 
of multilog for every connection. That is an absurd 
configuration---multilog LOCKS the log directory (for good reason) and 
will simply exit if the directory is already locked. So what probably 
happens for you is that you never get log entries for concurrent 
connections.

The *correct* way to do that is to either use daemontools (so that 
multilog can be used in a sane manner) OR to use splogger (which feeds 
the log entries to syslog).

~Kyle
--

-- 
A government which robs Peter to pay Paul can always depend on the 
support of Paul.
                                                 -- George Bernard Shaw
(Continue reading)

Kyle Wheeler | 8 Apr 2010 21:57

Re: temporary rejection


On Tuesday, April  6 at 08:54 PM, quoth Oliver Block:
>I wonder if and how its possible to make qmail temporarily reject 
>mail for a certain virtual host.

That's easy: simply remove that virtual host's domains from the 
rcpthosts file (and/or morercpthosts, if you use that).

>An alternative would be to forward all the messages to another mail 
>server for storage for a single virtual domain.

Honestly, that's significantly more complicated (unless you have 
control of DNS).

~Kyle
--

-- 
The whole problem with the world is that fools and fanatics are always 
so certain of themselves, but wiser people so full of doubts.
                                                    -- Bertrand Russell

Gmane