[pfx] Re: Different outgoing IP address by virtual domain

2024-01-01 Thread Emmett Culley via Postfix-users
On 1/1/24 11:29 AM, Wietse Venema via Postfix-users wrote: First, verify that your sender_dependent_default_transport_maps is not pre-empted by a higher-precedence mechanism: Thanks Wietse, That was the clue I needed. I thought I had commented out gmail from the transport file. Well I did,

[pfx] Re: Different outgoing IP address by virtual domain

2024-01-01 Thread Wietse Venema via Postfix-users
Wietse Venema via Postfix-users: > Emmett Culley via Postfix-users: > > I have a long time running Postfix server (version 2.10) where I need to > > send from specific IP addresses for some virtual domains. > > > > I have it working, sort of. If I send email from this server to another > > serv

[pfx] Re: Different outgoing IP address by virtual domain

2024-01-01 Thread Wietse Venema via Postfix-users
Emmett Culley via Postfix-users: > I have a long time running Postfix server (version 2.10) where I need to send > from specific IP addresses for some virtual domains. > > I have it working, sort of. If I send email from this server to another > server running postfix, it all seems to work. Th

[pfx] Different outgoing IP address by virtual domain

2024-01-01 Thread Emmett Culley via Postfix-users
I have a long time running Postfix server (version 2.10) where I need to send from specific IP addresses for some virtual domains. I have it working, sort of. If I send email from this server to another server running postfix, it all seems to work. The sent email shows the transport required

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread Wietse Venema
Matus UHLAR - fantomas: > >Matus UHLAR - fantomas: > >> >> how? > >> >> > >> >> if you define different smtp transports with different smtp_bind_address > >> >> defined in master.cf, the sender_dependent_default_transport_maps should > >> >> do > >> >> what you want. > >> > >> On 29.05.20 15:17, Ge

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread Matus UHLAR - fantomas
Matus UHLAR - fantomas: >> how? >> >> if you define different smtp transports with different smtp_bind_address >> defined in master.cf, the sender_dependent_default_transport_maps should >> do >> what you want. On 29.05.20 15:17, George wrote: >Thanks for your response. My problem is that I do n

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread George
Hi, Wow! Your solution worked like a charm from first attempt. This is genius. Thanks a lot for the help everyone. It is possible to use the 'filter' command for this. > > /etc/postfix/main.cf > smtpd_client_restrictions = > check_client_access hash:/etc/postfix/client_access > > /et

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread Wietse Venema
Matus UHLAR - fantomas: > >> how? > >> > >> if you define different smtp transports with different smtp_bind_address > >> defined in master.cf, the sender_dependent_default_transport_maps should > >> do > >> what you want. > > On 29.05.20 15:17, George wrote: > >Thanks for your response. My proble

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread Matus UHLAR - fantomas
how? if you define different smtp transports with different smtp_bind_address defined in master.cf, the sender_dependent_default_transport_maps should do what you want. On 29.05.20 15:17, George wrote: Thanks for your response. My problem is that I do not know what to use in the file where sen

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread George
> how? > > if you define different smtp transports with different smtp_bind_address > defined in master.cf, the sender_dependent_default_transport_maps should > do > what you want. > > > Hi, Thanks for your response. My problem is that I do not know what to use in the file where sender_dependent_d

Re: Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread Matus UHLAR - fantomas
On 29.05.20 12:29, George wrote: I have an anti spam postfix gateway running on an Ubuntu server. Currently I use relayhost on multiple web servers for sending mail through the gateway. On the postfix gateway I have multiple secondary IPs. What I want to do is to configure the gateway so mail se

Postfix gateway with per relayed host outgoing IP

2020-05-29 Thread George
Hi, I have an anti spam postfix gateway running on an Ubuntu server. Currently I use relayhost on multiple web servers for sending mail through the gateway. On the postfix gateway I have multiple secondary IPs. What I want to do is to configure the gateway so mail sent from a particular web serve

Re: retry 5xx using a fallback outgoing IP

2017-08-11 Thread Noel Jones
On 8/11/2017 4:44 AM, Mai Ling wrote: > the primary mx is not refusing *me* the postifx box, it's refusing > connections initiated by me from one of the two IP address. > > Do the RFCs handle such cases? (fallback to a different > smtp_bind_address) > Does postfix have some round-robin or fallback

Re: retry 5xx using a fallback outgoing IP

2017-08-11 Thread Mai Ling
the primary mx is not refusing *me* the postifx box, it's refusing connections initiated by me from one of the two IP address. Do the RFCs handle such cases? (fallback to a different smtp_bind_address) Does postfix have some round-robin or fallback choice of smtp_bind_address?

Re: retry 5xx using a fallback outgoing IP

2017-08-11 Thread Mai Ling
8/10/2017 12:29 PM, Mai Ling wrote: > However, the topic of this thread > is: Can postfix retry a failed > message, by attempting to retransmit using > a different outgoing IP > address of the machine it's running on? > > > If I send a mail to the same de

Re: retry 5xx using a fallback outgoing IP

2017-08-10 Thread Noel Jones
On 8/10/2017 12:29 PM, Mai Ling wrote: > However, the topic of this thread is: Can postfix retry a failed > message, by attempting to retransmit using a different outgoing IP > address of the machine it's running on? > > If I send a mail to the same destination using t

Re: retry 5xx using a fallback outgoing IP

2017-08-10 Thread Wietse Venema
Mai Ling: > FWIW, Mathus, the remote side is simply printing a 5xx one line > message "not accepted" banner instead of the expected welcome 220 > banner, not giving any explanation to why, then closing the tcp > session, without postfix even getting a chance to say HELO! If the primary MX for a do

Re: retry 5xx using a fallback outgoing IP

2017-08-10 Thread Mai Ling
y, then closing the tcp session, without postfix even getting a chance to say HELO! However, the topic of this thread is: Can postfix retry a failed message, by attempting to retransmit using a different outgoing IP address of the machine it's running on? If I send a mail to the sa

Re: retry 5xx using a fallback outgoing IP

2017-08-10 Thread Matus UHLAR - fantomas
On 10.08.17 08:04, Mai Ling wrote: My question is can postfix retry a failed delivery using another smtp_bind_address than the first tried and failed one? did you even read error messages you've got and searched the net for answers? On aug. 9, 2017 at 5:10 p.m., mailto:uh...@fantomas.sk)>

retry 5xx using a fallback outgoing IP

2017-08-09 Thread Mai Ling
I've already asked them that. My question is can postfix retry a failed delivery using another smtp_bind_address than the first tried and failed one? > > On aug. 9, 2017 at 5:10 p.m., (mailto:uh...@fantomas.sk)> wrote: > > > > On 09.08.17 17:00, Mai

Re: retry 5xx using a fallback outgoing IP

2017-08-09 Thread Matus UHLAR - fantomas
On 9 August 2017 at 12:35, Mai Ling mailto:mailinglist...@gmail.com)> wrote: > My small office client upgraded his internet connection and I've updated the self hosted postfix configuration file with the new IP address. > > Soon after, email users began complaining about bounces they started

Re: retry 5xx using a fallback outgoing IP

2017-08-09 Thread Mai Ling
no, it's statically configured > > On aug. 9, 2017 at 3:08 p.m., (mailto:domi...@timedicer.co.uk)> wrote: > > > > > On 9 August 2017 at 12:35, Mai Ling (mailto:mailinglist...@gmail.com)> wrote: > > > > > > > > > > > > > My small office clien

Re: retry 5xx using a fallback outgoing IP

2017-08-09 Thread Dominic Raferd
On 9 August 2017 at 12:35, Mai Ling wrote: > My small office client upgraded his internet connection and I've updated > the self hosted postfix configuration file with the new IP address. > > Soon after, email users began complaining about bounces they started > receiving for some emails they sen

retry 5xx using a fallback outgoing IP

2017-08-09 Thread Mai Ling
My small office client upgraded his internet connection and I've updated the self hosted postfix configuration file with the new IP address. Soon after, email users began complaining about bounces they started receiving for some emails they sent. After examining logs I've conclude

Re: Mapping outgoing IP address based on SASL username

2016-04-19 Thread Wietse Venema
miguel.telle...@iteisa.com: > Dear all, > > In a Postfix 2.8.7 + Cyrus SASL installation, on a server with multiple > IP addresses, > we would like to find a way to map the outgoing IP address with the SASL > username. Postfix can't do that, but it can require that the

Mapping outgoing IP address based on SASL username

2016-04-19 Thread miguel . telleria
Dear all, In a Postfix 2.8.7 + Cyrus SASL installation, on a server with multiple IP addresses, we would like to find a way to map the outgoing IP address with the SASL username. We have already used sender_dependent_default_transport_maps but this mapping is based on the MAIL FROM

Re: sender IP dependent outgoing IP address after content_filter

2016-03-11 Thread Noel Jones
On 3/11/2016 9:22 AM, gsotsas wrote: > Thanks once again! > > Do you see any possibility to use the client IP from the XFORWARD > header? And to pass it to an external policy daemon? > > Amda No. > > On 09.03.2016 22:41, Wietse Venema wrote: >> gsotsas: >>> Dear postfix users, >>> I have th

Re: sender IP dependent outgoing IP address after content_filter

2016-03-11 Thread Wietse Venema
gsotsas: > Thanks once again! > > Do you see any possibility to use the client IP from the XFORWARD > header? And to pass it to an external policy daemon? There is no such thing as an xforward header. I describe the system as it exists today. I could also describe a system that does not exist,

Re: sender IP dependent outgoing IP address after content_filter

2016-03-11 Thread gsotsas
Thanks once again! Do you see any possibility to use the client IP from the XFORWARD header? And to pass it to an external policy daemon? Amda On 09.03.2016 22:41, Wietse Venema wrote: gsotsas: Dear postfix users, I have the following outbound relayhost configuration: {client that sends mai

Re: sender IP dependent outgoing IP address after content_filter

2016-03-09 Thread Wietse Venema
gsotsas: > Dear postfix users, > I have the following outbound relayhost configuration: > {client that sends mail to smtp relay} -> {postfix:587} -> {policyd} -> > {postfix} -> {amavis:10024} -> {postfix:10025} -> {postfix relays mail > to destination mailserver} > > What I need is that the last

sender IP dependent outgoing IP address after content_filter

2016-03-09 Thread gsotsas
Dear postfix users, I have the following outbound relayhost configuration: {client that sends mail to smtp relay} -> {postfix:587} -> {policyd} -> {postfix} -> {amavis:10024} -> {postfix:10025} -> {postfix relays mail to destination mailserver} What I need is that the last postfix process sets

Re: outgoing IP

2015-02-19 Thread Wietse Venema
st...@thornet.co.uk: > i.e. mail arriving on IP1, IP2 & IP3? to relay out > on IP1, but mail mail arriving on IP4 to relay out on IP4. No local mail > will arrive on IP4. > We could do this with two instances of postfix, Yes, that is a good idea. It also allows you to give IPv4 and IPv6 addresses

outgoing IP

2015-02-19 Thread steve
We have a server with multiple IP addresses. We use the various IPs on incoming to provide different types/levels of spam filtering. Currently all outgoing mail uses the same single IP. We would like for mail that arrives on one particular IP to be relayed out on a different IP from other mail.

Re: Postfix randomizing outgoing IP using

2013-11-29 Thread M.Atıf CEYLAN
I wrote the perl script again. The new script contains my own ip address range check. if the IP of the domain is in my IP range it prints "200 dovecot:" message. #!/usr/bin/perl -w # author: Hari Hendaryanto #use strict; use warnings; use Sys::Syslog qw(:DEFAULT setlogsock); use Net::DNS; use

Re: Postfix randomizing outgoing IP using

2013-11-29 Thread M.Atıf CEYLAN
On 29-11-2013 11:33, masegaloeh wrote: Hi, Please read the comment section of that article http://www.kutukupret.com/2010/12/06/postfix-randomizing-outgoing-ip-using-tcp_table-and-perl/#comment-22133 You can find a modified script to make exception of local domain delivery Very thanks

Re: Postfix randomizing outgoing IP using

2013-11-29 Thread masegaloeh
On 11/28/2013 7:12 PM, "M.Atıf CEYLAN" wrote: Hi, I found the URL http://www.kutukupret.com/2010/12/06/postfix-randomizing-outgoing-ip-using-tcp_table-and-perl/ about multiple outgoing IP using. I use postfix with dovecot LDA. My postfix ma

Postfix randomizing outgoing IP using

2013-11-28 Thread M.Atıf CEYLAN
Hi, I found the URL http://www.kutukupret.com/2010/12/06/postfix-randomizing-outgoing-ip-using-tcp_table-and-perl/ about multiple outgoing IP using. I use postfix with dovecot LDA. My postfix main.cf conf. ... transport_maps = tcp:[127.0.0.1]:2527 127.0.0.1

Re: using different outgoing IP per incoming IP?

2013-10-10 Thread Wietse Venema
Andreas Ziegler: > Hi, > > a postfix server that is listening on more than IP - each for another > internal service - is sending them out to the recipients using one > specific IP. > Is it possible to specify, that mails coming in on IP 1.2.3.4 have to > use another outgoing

Re: using different outgoing IP per incoming IP?

2013-10-10 Thread li...@rhsoft.net
Am 10.10.2013 10:20, schrieb Andreas Ziegler: > a postfix server that is listening on more than IP - each for another > internal service - is sending them out to the recipients using one > specific IP. > Is it possible to specify, that mails coming in on IP 1.2.3.4 have to > use a

using different outgoing IP per incoming IP?

2013-10-10 Thread Andreas Ziegler
Hi, a postfix server that is listening on more than IP - each for another internal service - is sending them out to the recipients using one specific IP. Is it possible to specify, that mails coming in on IP 1.2.3.4 have to use another outgoing IP than mails coming in on other IPs? I know it is

Re: Force same in and outgoing ip numbers?

2012-09-25 Thread Kingsquare.nl - Marc van Duivenvoorde
A related question, is it possible to enforce an authenticated user to one specific ip? I'll have to figure out how to enforce outgoing mail to a certain ip, on a plesk machine, otherwise I'll have to get another VPS specificly for the purpose of outgoing mail. Met vriendelijke groet, Marc van D

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread /dev/rob0
On Mon, Sep 24, 2012 at 10:26:05PM +0200, Benny Pedersen wrote: > DN Singh skrev den 24-09-2012 18:31: > >You can setup multiple postfix instances for each ip. > > and one postfix have no problem have seperate listner pr ip That's not the issue. The issue is that in a single instance, it isn't s

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread Benny Pedersen
DN Singh skrev den 24-09-2012 18:31: You can setup multiple postfix instances for each ip. and one postfix have no problem have seperate listner pr ip

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread Kingsquare.nl - Marc van Duivenvoorde
Ok, It might need to deliver to the local machine, but the MX will be one of the other three ip's, this specific ip will solely be used as relay host for our web platform. I'll give this a try tomorrow. Thanks. Marc van Duivenvoorde Kingsquare information services. On Mon, Sep 24, 2012 at 6:41 P

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread Wietse Venema
Kingsquare.nl - Marc van Duivenvoorde: > Hi, I've got a question. Let's say I have a machine with 4 ipnumbers, > all of which are being used to send e-mail. Is it possible to enforce > that whenever someone connects to smtp on one of these numbers, that > the smtpd will use the same ip? > > I have

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread Noel Jones
and send off all possible e-mail. The only thing is, > all mail being relayed from this box has another outgoing hostname and > ip number than the dedicated incoming one. > > Met vriendelijke groet, > > Marc van Duivenvoorde > Kingsquare information services. > To keep m

Re: Force same in and outgoing ip numbers?

2012-09-24 Thread DN Singh
You can setup multiple postfix instances for each ip. On Sep 24, 2012 9:34 PM, "Kingsquare.nl - Marc van Duivenvoorde" < m...@kingsquare.nl> wrote: > Hi, I've got a question. Let's say I have a machine with 4 ipnumbers, > all of which are being used to send e-mail. Is it possible to enforce > that

Force same in and outgoing ip numbers?

2012-09-24 Thread Kingsquare.nl - Marc van Duivenvoorde
Hi, I've got a question. Let's say I have a machine with 4 ipnumbers, all of which are being used to send e-mail. Is it possible to enforce that whenever someone connects to smtp on one of these numbers, that the smtpd will use the same ip? I have a shared machine, only for one mail account I use

Re: Two outgoing IP addresses on one postfix instance

2011-11-15 Thread Wietse Venema
Marcin Hlybin: > Hello, > > I am trying to add the second IP address to the same Postfix > instance. I would like to separate mail traffic not creating many > postfix instances. The problem that you describe is exactly what multiple instances are supposed to solve. You can kludge this up with "

Re: Two outgoing IP addresses on one postfix instance

2011-11-15 Thread Jeroen Geilman
On 2011-11-15 17:52, Marcin Hlybin wrote: Hello, I am trying to add the second IP address to the same Postfix instance. I would like to separate mail traffic not creating many postfix instances. In master.cf I have: 1.2.3.4:smtp inet n - - - - smtpd -o myhostname=mail1.domain.com 1.2.3.5:smtp

Two outgoing IP addresses on one postfix instance

2011-11-15 Thread Marcin Hlybin
Hello, I am trying to add the second IP address to the same Postfix instance. I would like to separate mail traffic not creating many postfix instances. In master.cf I have: 1.2.3.4:smtp inet n - - - - smtpd -o myhostname=mail1.domain.com 1.2.3.5:smtp inet n - - - - smtpd -o myhostname=mail2.d

Re: Bind Postfix to outgoing IP address

2011-08-23 Thread Wietse Venema
Mark Goodge: > On 23/08/2011 14:29, Patrick Ben Koetter wrote: > > * Mark Goodge: > >> How can I bind Postfix to only send outgoing mail via one IP address > >> (ie, always use the same ethernet interface)? > > > > smtp_bind_address > > Yes, I discovered that about 5 seconds after I hit "send" on

Re: Bind Postfix to outgoing IP address

2011-08-23 Thread Mark Goodge
On 23/08/2011 14:29, Patrick Ben Koetter wrote: * Mark Goodge: How can I bind Postfix to only send outgoing mail via one IP address (ie, always use the same ethernet interface)? smtp_bind_address Yes, I discovered that about 5 seconds after I hit "send" on the previous email. Oh well, and t

Re: Bind Postfix to outgoing IP address

2011-08-23 Thread Patrick Ben Koetter
* Mark Goodge : > How can I bind Postfix to only send outgoing mail via one IP address > (ie, always use the same ethernet interface)? smtp_bind_address -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explici

Re: Bind Postfix to outgoing IP address

2011-08-23 Thread Ralf Hildebrandt
* Mark Goodge : > How can I bind Postfix to only send outgoing mail via one IP address > (ie, always use the same ethernet interface)? postconf |grep bind -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenbur

Bind Postfix to outgoing IP address

2011-08-23 Thread Mark Goodge
How can I bind Postfix to only send outgoing mail via one IP address (ie, always use the same ethernet interface)? I have a server which has two IP addresses, one on eth0 and one on eth0.1. I have discovered that some of my outgoing mail is being rejected by over-zealous spam filters because i

Re: Sender based outgoing IP selection

2009-05-01 Thread mouss
Attila Nagy a écrit : > Hello, > > I have to route e-mails coming from different IP addresses to the world > (no single smarthost, the target can be anything) with different source > IPs. > > So a mail coming in on 1.1.1.1 should go out with the source address of > 2.2.2.2 and another coming in o

Sender based outgoing IP selection

2009-04-27 Thread Attila Nagy
Hello, I have to route e-mails coming from different IP addresses to the world (no single smarthost, the target can be anything) with different source IPs. So a mail coming in on 1.1.1.1 should go out with the source address of 2.2.2.2 and another coming in on 3.3.3.3 should go out from 4.4.4

Re: Set outgoing IP address based on sender e-mail address?

2009-02-14 Thread Sahil Tandon
On Sat, 14 Feb 2009, Nate Carlson wrote: > Sorry if this is a FAQ, I can't find anything about it online. Somewhat of a FAQ: http://article.gmane.org/gmane.mail.postfix.user/150117/ -- Sahil Tandon

Set outgoing IP address based on sender e-mail address?

2009-02-14 Thread Nate Carlson
Hey all, Sorry if this is a FAQ, I can't find anything about it online. Is it possible to set the outgoing IP address of a locally-generated message based on the sender's e-mail address? IE, if a message is submitted via 'pickup' with the sender address of 'u...@

Re: Outgoing IP address

2008-10-23 Thread mouss
Robert Fitzpatrick a écrit : > I have an SMTP server down and would like to use another box > temporarily. The IP address of the down server is setup with reverse > DNS. I added this IP address as an alias to the interface on the temp > box, can Postfix control the IP used to send and allow me to u

Re: Outgoing IP address

2008-10-23 Thread Jorey Bump
Robert Fitzpatrick wrote, at 10/23/2008 03:58 PM: > I have an SMTP server down and would like to use another box > temporarily. The IP address of the down server is setup with reverse > DNS. I added this IP address as an alias to the interface on the temp > box, can Postfix control the IP used to s

Outgoing IP address

2008-10-23 Thread Robert Fitzpatrick
I have an SMTP server down and would like to use another box temporarily. The IP address of the down server is setup with reverse DNS. I added this IP address as an alias to the interface on the temp box, can Postfix control the IP used to send and allow me to use that alias IP address when sending