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:[EMAIL PROTECTED] 
Sent: Wednesday, November 01, 2006 12:16 PM
To: [email protected]
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


Reply via email to