logs archiveIRC Archive / Freenode / #exim / 2010 / June / 25 / 1
Vampire0_
where is the problem petemc? As long as the information for which to decide is available as variable, you can either use an "if" or e. g. a lookup in a file for it in the authenticators propertyvalue like client_send for the plaintext authenticator or client_name/client_secret for the cram_pd5 authenticator and possibly in the hosts_try_auth property of the smtp transport
petemc
ive seen the funky stuff mike cardwell has done, but i dont see how that could be adapted to scripts that all run as the user that runs the webserver
(by scripts i mean forms on a website that call sendmail)
of course, theres lots of i dont know so would love to see how it could be done
Flaim
yea that would be kinda handy, but i'm a relative exim newby
Vampire0_
petemc, if all runs as "the user that runs the webserver" then why do you need different authentications for different users as there are not different users calling exim? *confused*
petemc
want different forms to be sent through different google accounts
Flaim
vampire: what i want is for user bob to authenticate to google as bob@domain, and user fred to auth to google as fred@domain
right now, every user on the server authenticates to google's SMTP as bob@domain, and so all messages, no matter what user sends them, appear to come from bob@domain
Vampire0_
And if you try what I said?
You could maybe make it dependent from the envelope-from or the From: Header
(I'm also an Exim newbie, just reading the docs currently)
henk
morning
i have a problem with exim. mails from some of our servers are rejected because 'verify = header_sender' fails somehow. what exactly does that verification check for? so far i know it looks for a valid sender address in the header somewhere, but i'm not quite sure what makes it a valid address. is it just a domain lookup?
phx
henk, docs
henk, a valid address is by the verification, an address that you can send amil to
henk, and it's described in the docs, go and read it
         

henk
phx: i know, looked at section 40.23 (at least in the 4.69 documents) for verify = header_sender and section 40.40 for verification in general. but either i missed what actually happens (dns request?) when that directive is encountered. are you sure that's documented? it doesn't seem to be in 40.40...
phx
i'm pretty sure it's in the docs, read it
henk, ch40 describes the verify= options, and 40.40 and 40.41 has the options
40.23 has the verify= docs
henk
mhm...
damn, i think that doesn't help... i'll dig a bit more. thanks so far :)
Farkie
phx is there a way for exim to check MX records
petemc
erm
it will do dns lookups as a matter of course
unless you mean something else
Farkie
well it seems to look locally for the domain, even if mx records points elsewhere
henk
i wondered if i should answer, but he specifically asked phx :-p
Farkie
he seems the only one who replies, lol
petemc
check local_domains
@ means the hostname of the machine exim runs on
Farkie
shouldn't it be automatic? so don't have to keep removing local_domains
petemc
'it' ?
henk
lol
Farkie
well, it's clearly not looking at mx record
henk
Farkie: dns saying "this server handles mail for domain foo.bar" is completely unrelated to the server being responsible for that domain.
Farkie: how about some spammer sets MX records for his domain to your server. do you want exim to accept those mails? o_O
phx
Farkie, it depends on the router driver you're using
Farkie
if it rejects them, don't care, lol
phx
Farkie, and of course, the DNS information that exim can access
Farkie
Ok, ill explain the problem a little better
say there are 2 domains on server
a.com and b.com
a.com email is all done by webmail, and served by our server
b.com email is done remotely, mx is set somewhere else
a.com can't send email to b.com, as exim tries to send it to local domain, rather than the mx record
henk
"email is done somewhere"... what does "doing email" actually mean?
Farkie
smtp is elsewhere
         

petemc
Farkie: exim does what you tell it, so exim has been told to deliver b.com locally
theres no magic
the way that exim is normally told a domain is local is the domainlist local_domains
Farkie
so, remove it from local_domains
and should be done?
henk
no, you need to do 20 pushups as well...
Farkie
:P
is for a client
d5e
topic SPF
I have set up my exim to forward mails for locally domains with /etc/aliases to an external gmail address ...
it works, gmail receives the mail, but complains about SPF fail - because my exim server is not allowed to send mails for the author of the original message
what am I doing wrong ?
petemc
http://www.openspf.org/FAQ/Forwarding
d5e
thx
henk
brrr spf... hate it.
pro
hi guys, i want to make an alias that anything going to bob@here.tld will got to bob@here.tld and bob@other.tld, but the problem is im using mysql tables for things, and im not sure how to do it
cant i add a router for that one mail box?
iamkoos
pro: you probably want to use the 'unseen' router option (to get store-and-forward working)
pro
yeah, i actually figured it out now
thank you anyway :D
ooops, dont you hate when you working on mysql and you do an update table set... and you forget the WHERE....
i just lost 360 aliases, and i didnt have a backup
iamkoos
run before any1 finds out
pack some things and move city
pro
no, i fixed it
iamkoos
oh ok .... *phew*
pro
i had done a select * from aliases, and then i just copied that and pasted it into a txt file wrote a script really really quick, and managed to get it all back
like before i did the update i had done the select
« prev