lutz.niede...@gmx.net:
> Hi,
> 
> I have a working setup of postfix that sends all mail not for me
> to a relayhost via smtp.  I want to use a fallback_relay to send
> mail via uucp.  Ok, I know that does not work out of the box.  So
> I set up another instance listening on port 10027 on 127.0.0.1.
> This sends mail via uucp.  I can telnet 127.0.0.1 10027 and see
> the instance.  I already exchanged my relayhost with the instance
> at 127.0.0.1 - that works too, mail gets queued for uucico.  So
> everything should be set up fine.
> 
> But when I send mail and the original relayhost is not available
> (means ports are closed) then I get
> 
> Dec 12 16:38:38 mhost postfix/smtp[1378]: 4278AB425ED: to=<john...@live.com>, 
> relay=none, delay=0.05, delays=0.03/0/0.02/0, dsn=4.4.1, status=deferred 
> (connect to mail.relay.de[192.10.64.2]: Connection refused)
> 
> And then the message sits in the queue.  It won't be delivered via
> my fallback_relay.

This would be a good time to post in one message:

The Postfix mail version (that would be 2.7).

"postconf -n" command output.

The master.cf definition for all SMTP client entries, in case there
are any "-o name=value" settings.

In my case, when I configure

/etc/postfix/main.cf:
    fallback_relay = [127.0.0.1]:9900

And send mail to a down host wzv.porcupine.org, then it tries to
connect to the fall-back host at [127.0.0.1]:9900.

Dec 12 20:34:15 tail postfix/qmgr[1623]: 3T2NqW57lgznkHT: 
from=<spa...@porcupine.org>, size=298, nrcpt=1 (queue active)
Dec 12 20:34:25 tail postfix/smtp[2518]: connect to 
wzv.porcupine.org[168.100.189.7]:25: Operation timed out
Dec 12 20:34:25 tail postfix/smtp[2518]: connect to 127.0.0.1[127.0.0.1]:9900: 
Connection refused
Dec 12 20:34:26 tail postfix/smtp[2518]: 3T2NqW57lgznkHT: 
to=<spa...@wzv.porcupine.org>, relay=none, delay=10, delays=0.14/0.17/10/0, 
dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:9900: Connection 
refused)

I get the same result when I specify the down host as relayhost:

/etc/postfix/main.cf:
    fallback_relay = [127.0.0.1]:9900
    relayhost = wzv.porcupine.org

And send mail to some other destination:

Dec 12 20:40:18 tail postfix/qmgr[1623]: 3T2NyV3vTpznkHV: 
from=<spa...@porcupine.org>, size=301, nrcpt=1 (queue active)
Dec 12 20:40:28 tail postfix/smtp[2542]: connect to 
wzv.porcupine.org[168.100.189.7]:25: Operation timed out
Dec 12 20:40:28 tail postfix/smtp[2542]: connect to 127.0.0.1[127.0.0.1]:9900: 
Connection refused
Dec 12 20:40:28 tail postfix/smtp[2542]: 3T2NyV3vTpznkHV: 
to=<spa...@rabbit.porcupine.org>, relay=none, delay=10, delays=0.01/0/10/0, 
dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:9900: Connection 
refused)

So everything works entirely as expected.

        Wietse

Reply via email to