Qmail-LDAP
[Top] [All Lists]

RE: (maybe I missed an answer?) Blok all mail on smtp accept auth or fro

To: 'Didier Geheniau' <didier.geheniau@feas.net>
Subject: RE: (maybe I missed an answer?) Blok all mail on smtp accept auth or from ip
From: "Gennady G. Marchenko" <gennady.marchenko@itv.ru>
Date: Wed, 1 Nov 2006 13:28:17 +0300
Cc: <qmail-ldap@qmail-ldap.org>
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
In-reply-to: <000801c6fd96$6a35a4a0$440b090a@ASUS02>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Thread-index: Acb9nvOW4zRPJ1AzT56quq5t/w0g1gAAQ54g
Good day sir,


        You need to use AUTHREQUIRED string in your SMTP rules for unknown
IP addresses.

Best wishes,
        Gennady.

-----Original Message-----
From: Didier Geheniau [mailto:didier.geheniau@feas.net] 
Sent: Wednesday, November 01, 2006 12:16 PM
To: qmail-ldap@qmail-ldap.org
Subject: (maybe I missed an answer?) Blok all mail on smtp accept auth or
from ip

Hi all,

We have a central mailserver that receives internet mail. Decentralized mail
servers pull the internet mail from this server with fetchmail.

On the decentralized mail servers (that are connected to the internet) I
want to blok all smtp connection (also for mails send to local receipents)
accept when the user is authenticated or if the ip from witch the mail is
send is accepted.

I use tcpserver:

Run:

#!/bin/sh
exec 2>&1 \
envdir ./env \
sh -c '
    case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac
    case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac
    exec \
    envuidgid qmaild \
    softlimit ${DATALIMIT+"-d$DATALIMIT"} \
    /usr/bin/tcpserver \
        -vDU"$H$R" \
        ${LOCALNAME+"-l$LOCALNAME"} \
        ${BACKLOG+"-b$BACKLOG"} \
        ${CONCURRENCY+"-c$CONCURRENCY"} \
        -xtcp.cdb \
        -- "${IP-0}" "${PORT-25}" \
    /var/qmail/bin/qmail-smtpd
'

Tcp:

Allowed ip 1:allow,RELAYCLIENT=""
Allowed ip 2:allow,RELAYCLIENT=""
:allow,SMTPAUTH=""
:deny

Any solutions?

Regards,

Didier



<Prev in Thread] Current Thread [Next in Thread>