logs archiveIRC Archive / Freenode / #exim / 2009 / December / 27 / 1
vzctl_
hi, i have router to archive my emails, but i don't want multiple copies of one email from maillist
there is my router: http://pastie.org/private/vees9yambjvmxsbbwecasw
exim do not send multiple copies of one email to the same user, i want to make the same for archive router
shai
Hi :) How do I use exiqgrep to find out how many emails I have going out (in the queue right now) from a certain domain?
Niaxa
hi .. I have a master and backup mail server with exim and if the backup one is opening an outgoing smtp connection to the primary server it uses the wrong IP address .... I tried to set fix addresses with the "interface" option but it seems to have no effect at all ... it still uses the wrong address.... anyone has further hints on this?
petemc
the wrong address being the wrong interface on the local machine or the wrong address being the ip the backup mx resolves to?
Niaxa
the wrong address on the wrong interface .... it should be using the backup mx resolves to but doesn't
petemc
you didnt clarify anything there
Niaxa
well ... the backup host, let's say it's called host2 has two address an ipv4 and an ipv6 ... they have proper forward and reverse names configured with dns. and for outgoing connections it should be using only these two addresses ...... but it's using a different address on another interface which has nothing to do with the mailserver at all its used for other purposes
petemc
what have addresses got to do with interfaces?
Niaxa
the option where I can specify the addresses is called "interfaces" according to the docs ;)
         

petemc
the interfaces option is used to decide which local interface to use for outgoing connections
this has nothing to do with a dns lookup to determine a mx record
Niaxa
yes, and in the docs example there are no interface names, there are IP addresses... so I tried to specify the addresses
yes that's what I want to change.... it binds to address A instead B for outgoing connections
petemc
you dont use ethernet device names, you use the ip addresses associated with those ethernet devices
Niaxa
yes... exactly how it's in the example
petemc
great, so we're all clear?
Niaxa
no :P it has no effect at all
petemc
it does indeed
i use it on many exim boxes
you probably doing it wrong
you're
Niaxa
then I might be doing something wrong and that's what I want to figure out and I would greatly appreciate in getting help on that :P
petemc
it should be specified on the transport that will be called by the router
often calld remote_smtp:
but could be called anything
Niaxa
so in the file /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp file
petemc
if you're using debian and a split config
Niaxa
remote_smtp:
interface = 2001:222:333::1; 10.3.70.1
debug_print = "T: remote_smtp for $local_part@$domain"
that's not correct?
petemc
i dont use ipv6, but i always use a colon to seperate items in a list rather than a semi colon
try restarting exim4, then you can run exim4 -bP transports and see if it has that interfaces line
Niaxa
it's not there
well the line is there but it's empty
petemc
exim4 -bV will tell you which config its using
Niaxa
Configuration file is /var/lib/exim4/config.autogenerated
hmmm and how do all these configs in /etc to this autogenerated thing
config has been regenerated but it's still not there
ah finally it's working now... thx for helping out ..cu
candyban
is there a good tutorial for exim4 + postgresql?
anyone in here? (or can anyone point me to a channel where more people are active ?
petemc
candyban: the exim spec details using exim to do various lookup types including postgresql
candyban
petemc: yes, the docs are great if you know how it supposed to be working ... to use it to set it up from scratch is rather useless (unless you have too much time to spare to read "all" the documentation and then try to reinvent the wheel ...)
petemc
the default config is a perfect starting point
then you modify it to add your lookups
etc
         

candyban
petemc: where in the default configuration is some virtual delivery?
« prev next »