Qmail-LDAP
[Top] [All Lists]

(maybe I missed an answer?) Blok all mail on smtp accept auth or from ip

To: <qmail-ldap@qmail-ldap.org>
Subject: (maybe I missed an answer?) Blok all mail on smtp accept auth or from ip
From: Didier Gehéniau <didier.geheniau@feas.net>
Date: Wed, 1 Nov 2006 10:16:28 +0100
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Importance: Normal
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Organization: FEAS
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>