Re: MX/ISP BLOCK

Rejaine Silveira Monteiro <[email protected]> Fri, 8 Feb 2019 14:40:46 -0200
Newsgroups gmane.mail.qmail.general
Message-ID <CAMTrDfV9dtr0UvvWjA3TC_ef5vQE8HCMQHVgaA_vK=Y7X2f=bg@mail.gmail.com>
thank you! the script is working fine!!  is only giving problems in
bounce mail, like:

@400000005c5da7a03aff7a3c info msg 31371954: bytes 39440 from <> qp
21332 uid 365
@400000005c5dae4821b48c34 starting delivery 18429: msg 31371954 to
remote [email protected]
@400000005c5dae4828f918fc delivery 18429: failure:
I_(qmail-remote)_was_invoked_improperly._(#5.3.5)/

is not a big problem, but do you have any idea what it might be?




Em sex, 8 de fev de 2019 às 13:59, Manvendra Bhangui
<[email protected]> escreveu:
>
> On Fri, 8 Feb 2019 at 20:49, Rejaine Silveira Monteiro
> <[email protected]> wrote:
> >
> > Is there any way to temporarily  block or ignore all mails sending
> > (qmail-send) to a particular MX (ISP)? There is an internet provider
> > in Brazil that is widely used by thousands of customers (locaweb).
> > This ISP is off the air and hundreds of messages from multiple clients
> > are standing in line. The problem is that this is generating a huge
> > delay in delivering to other customers of other ISPs.
>
> You can do something like this temporarily (But test this out on a test system).
>
> 1. shutdown down qmail
>
> 2. mv /var/qmail/bin/qmail-remote /var/qmail/bin/qmail-remote.org
>
> 3. Put the compiled dnsmxip in the qmail-1.03 source directory in /var/qmail/bin
>
> 4. Write the following script as qmail-remote in /var/qmail/bin. Asume
> w.x.y.z is the IP of the ISP
> #!/bin/sh
> domain=$1
> /var/qmail/bin/dnsmxip $1 |awk '{print $2}'| while read line
> do
>     if [ " $line" = " w.x.y.z" ] ; then
>         exec cat > /dev/null
>     fi
> done
> exec /var/qmail/bin/qmail-remote.org $*
>
> 5. chmod +x /var/qmail/bin/qmail-remote
> 6. Restart qmail

-- 
*Esta mensagem pode conter informações confidenciais ou privilegiadas, 
sendo seu sigilo protegido por lei. Se você não for o destinatário ou a 
pessoa autorizada a receber esta mensagem, não pode usar, copiar ou 
divulgar as informações nela contidas ou tomar qualquer ação baseada nessas 
informações. Se você recebeu esta mensagem por engano, por favor avise 
imediatamente ao remetente, respondendo o e-mail e em seguida apague-o. 
Agradecemos sua cooperação.*