logs archiveIRC Archive / Freenode / #exim / 2010 / April / 14 / 1
chillindave
I can't seem to figure out how to prevent all system emails from being sent via smtp replay with exim4.
McManiaC
hey guys
I have a problem
I've sent an email to "foo+moep@..." (where "foo@..." is a correct email address) with local_part_suffix set to "+* : -*"
the mainlog shows that it got delivered correctly but I cant find it in my Maildir
henk
sounds like not an exim problem to me...
McManiaC: what do you mean by "it got delivered correctly'?
McManiaC
2010-04-14 11:44:57 1O1z9R-0007oP-A7 => mail <mail+jg27@...de> R=localuser T=local_delivery
2010-04-14 11:44:57 1O1z9R-0007oP-A7 Completed
+ the "<=" part one line above
I have two domains on this server
one works with those suffixes
the other doesnt :S
henk
exim works as it seems...
McManiaC: have you tried to grep the mailbox of user mail for 'mail+jg27'?
McManiaC
of course
henk
McManiaC: have you tried to grep the mailbox of user mail for 'mail\+jg27'?
McManiaC
I greped for jg27
;)
henk
McManiaC: and you are sure you grepped at the right place?
         

McManiaC
yeh
henk
sorry, no further ideas atm
McManiaC
as I said, I have two domains, lets call them foo and bar
mail@foo.tld, mail@bar.tld, mail+moep@foo.tld work, but mail+moep@bar.tld doesnt :S
all go to the same user
petemc
are they both handled by the same router?
McManiaC
router?
petemc
yes
henk
hm, that sounds substantially different from the problem i understood before...
McManiaC
same exim, yes
it does?
petemc
McManiaC: go look up what a router is in the context of exim, then answer the question again
henk
McManiaC: yes, before i understood: you want to use suffixes for one domain, but not for the other. but perhaps it was just me understanding it wrongly...
McManiaC
petemc: you got a link?
petemc
exim.org
McManiaC
well :P
petemc
www.google.com
how did you configure exim?
McManiaC
copied & adjusted the example configuration
read those comments
:>
petemc
and you didnt notice anything to do with routers?
McManiaC
sure I did
but I cant see where exim differentiates between those two domains
petemc
are they both handled by the same router?
simple question
McManiaC
they should be
not sure
:>
djce
Well, we can't answer that question for you.
Suggest you make use of "exim -bt".
If you don't know what that is, read "man exim".
         

McManiaC
router = localuser, transport = local_delivery
for each address
so this should be correct
david00
Hey all
Not strictly an exim question, but
McManiaC
lol wtf
it works with another useraccount
david00
What's the normal way to indicate that a domain should not receive email anymore?
djce
Remove its MX record?
david00
djce: cool, that's good
phx
it'll go for the A/CNAME record then
david00
phx: what would happen then?
phx
david00, depends on the MTA on the A/CNAME record
djce
depends if the A/CNAME resolves, where it resolves to, and what's listening there on port 25.
david00
makes sense
what if there is no A/CNAME record?
or is this not possible?
(Action) is quickly reading wiki ;)
phx
mails are deliverable then
McManiaC
petemc: could it be because of some aliases?
woot
it is
aliases dont like suffixes
petemc
unless configured to do so
McManiaC
how? =)
petemc
same way it would be configured for the localuser router
McManiaC
so add that suffix part to the alias-router?
petemc
yes
McManiaC
aaah okay
thx
aaaaaaaaand there it is
that mail =)
thx
is there a documentation for the aliases file?
phx
the lsearch/whatever file db lookup method, you're using it with :)
McManiaC
ah okay
data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
how do I read this?
phx
dollar wtf lookup wtf dollar...
McManiaC
ah :P
ah
hm
meh
the exim doc is pretty confusing
whats the variable to check the whole email address?
phx
which one?
McManiaC
${lookup{$email_address}..
the "to"
phx
that's the recipient address
$local_part@$domain
McManiaC
ah okay
phx
i suggest using ${lc:$local_part}@${lc:$domain} tho
McManiaC
what is that?
phx
think of FooBar@ThisIsYourDoMain.CoM
lc Lower Case
McManiaC
oh okay
cool
it works
what exactly is "newaliases" for? is it necessary? and how can I tell it that I'm using two alias files now?
phx
http://exim.org/exim-html-current/doc/html/spec_html/ch04.html#SECID35
check the bsd example for mailer.conf
newaliases usage for exim is pretty trivial from that :)
McManiaC
so I just replace newaliases by /usr/bin/true ?
phx
you don't need it
but you can, if you feel comfortable by that
McManiaC
ok
so I wont
;)
http://npaste.de/whoSXg48F0/
or is there a way to put this together? :>
I might be able to use the same alias file tho
hm
phx
i'm really not using aliases from a file, everything is in the DB here
except spamassassin, clamav and postgrey
McManiaC
yeh
but you still need two routers?
phx
i have one for aliases
http://pastebin.ca/1859824
McManiaC
hm
Simon-
development appears to have come to a complete halt again :|
petemc
running your own mail service is passé now anyway
henk
petemc: huh? why?
petemc
cause its a pain in the arse
henk
petemc: hm regarding what?
petemc
in general
henk
o_O aren't you a bit generalizing there? what circumstances are making it a pain?
petemc
saying in general is generalising a bit yes, and its a bit of a tautology to say that too
berndj
i want to tell exim to do something other than bounce a message if a pipe transport fails (for example if it segfaults due to one of my bugs). how?
« prev next »