Re: exim4
> On Sun, Nov 15, 2009 at 12:54:10PM +0100, chris-f wrote:
> > Jak to osiagnac w eximie4, bo przy takich ustawieniach
> > wysylajac maila mam w naglowkach otrzymanego maila:
> >
> > Received: from domena.pl [70.103.162.30]
> > a chce zeby bylo 70.103.162.29
>
> Dodaj do definicji transportu smtp opcję:
> interface = 70.103.162.29
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch30.html#SECID146
Uzywam rozbitej konfiguracji, a wiec dodalem do
/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp
### transport/30_exim4-config_remote_smtp
#################################
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
debug_print = "T: remote_smtp for $local_part@$domain"
driver = smtp
interface = 70.103.162.29
.ifdef REMOTE_SMTP_HOSTS_AVOID_TLS
hosts_avoid_tls = REMOTE_SMTP_HOSTS_AVOID_TLS
.endif
.ifdef REMOTE_SMTP_HEADERS_REWRITE
headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE
.endif
.ifdef REMOTE_SMTP_RETURN_PATH
return_path = REMOTE_SMTP_RETURN_PATH
.endif
.ifdef REMOTE_SMTP_HELO_FROM_DNS
helo_data=REMOTE_SMTP_HELO_DATA
.endif
dalem update-exim4.conf
/etc/init.d/exim4 restart
ale dalej maile wysylane sa z IP 70.103.162.30
Reply to:
- Follow-Ups:
- Re: exim4
- From: tower <towern@gmail.com>
- Re: exim4
- From: Marcin Owsiany <porridge@debian.org>
- References:
- exim4
- From: chris-f <chris-f@o2.pl>
- Re: exim4
- From: Marcin Owsiany <porridge@debian.org>