OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Wietse Venema (wietseporcupine.org)
Date: Tue Mar 06 2001 - 13:58:12 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Works for me. You need a Postfix that support multiple relayhosts.

            Wietse

    # postconf relayhost
    relayhost = redhat62 spike
    # echo foo | mail wietse
    # Mar 6 14:56:15 tail foobar/pickup[929]: 117E46AA90: uid=0 from=<root>
    Mar 6 14:56:15 tail foobar/cleanup[935]: 117E46AA90: message-id=<20010306195615.117E46AA90tail.porcupine.org>
    Mar 6 14:56:15 tail foobar/nqmgr[930]: 117E46AA90: from=<rootporcupine.org>, size=293, nrcpt=1 (queue active)
    Mar 6 14:56:15 tail foobar/smtp[937]: connect to redhat62.porcupine.org[168.100.189.23]: Connection refused (port 25)
    Mar 6 14:56:15 tail foobar/smtp[937]: 117E46AA90: to=<wietseporcupine.org>, relay=spike.porcupine.org[168.100.189.2], delay=0, status=sent (250 Ok: queued as 25EF5BC06D)

    laurent.commeauvendome.com:
    >
    > ok thanks Wietse it's work for the time out.
    >
    > But if i have 2 relay hosts for failover, and one of the first host said
    > connection refused on port 25, then the relayhost don't work.
    >
    > I've looking for relayhost on the man page, but i have'nt find what i want.
    >
    > Sorry for my poor english.
    >
    > Thanks for your help
    >
    >
    >
    >
    > wietseporcup
    > ine.org To: laurent.commeauvendome.com
    > (Wietse cc: Wietse Venema <wietseporcupine.org>, postfix-userspostfix.org
    > Venema) Subject: Re: relayhost
    >
    > 06/03/01
    > 19:36
    >
    >
    >
    >
    >
    >
    > It works for me. By the way, your quoting sucks.
    >
    > Wietse
    >
    > # postconf relayhost smtp_connect_timeout
    > relayhost = belly, spike
    > smtp_connect_timeout = 5s
    > # echo foo | mail wietse
    > # tail -f /var/log/maillog
    > Mar 6 13:34:12 tail foobar/pickup[741]: B15C76AA90: uid=0 from=<root>
    > Mar 6 13:34:12 tail foobar/cleanup[747]: B15C76AA90: message-id
    > =<20010306183412.B15C76AA90tail.porcupine.org>
    > Mar 6 13:34:12 tail foobar/nqmgr[742]: B15C76AA90: from
    > =<rootporcupine.org>, size=318, nrcpt=1 (queue active)
    > Mar 6 13:34:18 tail foobar/smtp[749]: connect to
    > belly.porcupine.org[168.100.189.6]: Operation timed out (port 25)
    > Mar 6 13:34:19 tail foobar/smtp[749]: B15C76AA90: to
    > =<wietseporcupine.org>, relay=spike.porcupine.org[168.100.189.2], delay=7,
    > status=sent (250 Ok: queued as 7E1B5BC06D)
    >
    > laurent.commeauvendome.com:
    > >
    > > I've already the latest version of postfix.
    > >
    > > I have test relayhost = host1, host2, but when i stop host1 the mail
    > > doesn't go to host2.
    > >
    > > Perhaps have you another idea.
    > >
    > > Best Regards
    > >
    > >
    > >
    > >
    > >
    > >
    >
    > > wietseporcupine.org
    >
    > > (Wietse Venema) To:
    > laurent.commeauvendome.com
    > > Sent by: cc:
    > postfix-userspostfix.org
    > > owner-postfix-usersp Subject: Re:
    > relayhost
    > > ostfix.org
    >
    > >
    >
    > >
    >
    > > 06/03/01 15:04
    >
    > >
    >
    > >
    >
    > >
    > >
    > >
    > >
    > > laurent.commeauvendome.com:
    > > >
    > > > Hello all,
    > > >
    > > > I have 3 smtp servers, i want to use the first to receive all mails
    > from
    > > > internet, the 2 others have some process like antivirus ....
    > > >
    > > > The first smtp server relay all mails to a second ( relayhost =
    > > > xxx.xxx.xxx.xxx ), but i want to use the third to backup the second,
    > but
    > > if
    > > > i can't make two machine in the relayhost setting ( relayhost =
    > > > xxx.xxx.xxx.xx1, xxx.xxx.xxx.xx2).
    > >
    > > You can have multiple relayhosts with recent Postfixen.
    > >
    > > Wietse
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >
    >
    >