logs archiveIRC Archive / Freenode / #exim / 2010 / May / 14 / 1
ironm
hi
is it possible to set exim to decode the "quoted-printable" messages to the original vealue (mbox)?
set up
I see .. the email client makes it .. TNX :-)
mickster04
any good guides on setting up an ubuntu server that acts as its own smtp server? i don't wanna use google i want my own address after the username? like mike@mickster.com
pro
hi guys, I have a exim4 that i want to be able to hold mails in a spool until the server that its sending to comes back on line, even if its 5 days, what am i looking for on google?
djce
http://exim.org/exim-html-current/doc/html/spec_html/index.html look for the links which mention "retry"
phx
retry intervals and spool expire timeout
pro
ahh, i was thinking it was that, but wanted to make sure
spool expire timeout? mmm, i'll look at that too
thank you both.
phx
i don't know the actual directive name, but it will be something similar, logically
pro
in theory i can start exim with -bd and leave off the -q 30m and it will do the same thing?
phx
it won't start queuerunners
that is, it won't even deliver Qd messages
         

pro
i dont want it to,
i have a exim that is running on a linux box and if the domain is one i accept mail for then i just relay it to the exchange server thats on the local lan
phx
and what if you get greylisted?
pro
now the exchange is broken and they want to rebuild it so i just want to 'spool' the mail till they have it fixed.
phx
man
pro
no it wont be sending mail out either,
phx
control = freeze
READ THE FUCKING DOCS
pro
the docs are huge, i have less then an hour to figure this out
phx
and when you're ready, exim -M to deliver them
well, i hope you can read really fast :)
pro
i can, but not _that_ fast
also, all mails that come in will only come from another smtp server, not lots of other servers
control = freeze, that looks good
phx
it definitely does
pro
let me read/test that
phx
i'm doing spam/virus quarantining with freeze
pro
ok
phx
most easiest way to handle them. auto-expire in a given number of days, and if has to be delivered, i just tell exim to do it
pro
ok
control = queue_only would also work from what i read here?
phx
yes, and the next queue runner will deliver it, or attempt to at least
that's the whole point of freezing the message
pro
oh, ok, so freeze would be the one i need then
phx
yup
pro
let me try that.
thank you so much, it really helps me a lot
phx
np. in advance your homework is to memorize the whole docs, and tell it to me :)
         

pro
by when?
phx
oh, tomorrow morning
pro
i wont be online tomorrow morning, i'll be rebuilding the altinator on my truck
:D
phx
:)
pro
phx, sorry to bug you, but i have tried that freeze thing, but i put it in the ACL right? not the router?
cause when i put it in the ACL its still delivering
phx
yeah, into an ACL
let me show you my ACL for doing this
pro
ok
phx
pro
ok, wait, i think i see the problem here
this is what i have...
http://pastebin.com/cBL9pnux
phx
the ACL has to match for the message
pro
and its not working cause im connecting to localhost to send it
phx
the line 17 accepts your mail i guess
and you defined it for the line18 acl
l7 is lo
pro
17 is allowing me to relay from localhost, and 18 is saying if the domain is one in my list accept it,
so that should work then right?
phx
let me indent your config
http://pastebin.com/PJqJBVLj
take a look at it now
ACLs are evaluated from first to last, deny/accept/reject/defer/discard are terminating, warn is not terminating
ACLs are evaluated from first to last, drop/deny/accept/reject/defer/discard are terminating, warn is not terminating
sorry to leave drop out of the list :)
pro
does a blank line terminate it?
phx
no. the next ACL entry terminates it
i've put the blank line there for you, to see the terminations
the accept/deny/defer/drop/discard/warn keywords start an ACL. from there 1 condition/line is the syntax, applied to the current ACL
therefore you're applying freeze only on the line19 (on my post) ACL. all the others don't have it
and l4 is also bugous
pro
line 4 ?
phx
that matches for !local_domains from local_hosts. someone else, not in the local_hosts list bypasses that check
deny message = Invalid Recipient hosts = +local_hosts domains = ! +local_domains
snf indyrsf og yjr l8,10 ACL syntaxes, you should have take a look at the continue= directive
s/snf/and/
also, you could merge l12-14
pro
ok, but i dont know regex well enough to try that
phx
http://pastebin.com/rhZw4WcY
consider this
it's not about regexes, it's about lists
this continue= is only good, if you're not using the acl_* macros later. i suppose you were only doing that for logging
pro
yes
phx
so, try the one i just showed, you tell me if it's proper or not, and pay attention to L6, i've put a comment there, for your own sake
pro
dont i need an accept after line 23 ?
phx
why would you?
what is the matching condition of l22?
it matches for _ALL_ mails. it terminates the acl_check_rcpt ACL list
if you put anything else after it, it will never get evaluated. never ever
pro
ok
im sure you can tell i dont know that much about exim ( i know enough to know its better than anything else though )
phx
pro
40.15 Format of an ACL ?
phx
wthe ACL verbs, the next section, describes the behaviour of the ACL types
yes, the format
pro
thats the problem, i have no idea what a verb is
i failed english all the time
phx
40.16
i just told you :)
accept/deny/defer/discard/... are the verbs for the ACLs
pro
so would verb mean the first word, like deny accept or so on?
phx
exactly
pro
oooh, ok, that i understand
ok, so its like im specifying an 'action' if the conditions are met, and the condition may have some code to allow the condition to be modified ( like a little script that can do some tests ) ?
phx
exim's tough point is these very elemental features. it has so basic elements, and so man, that they look too much at first glance, but when you get used to it, it becomes really useful and handsome
pro, exactly
your codes are basically lookups and string expansions
pro
ok
phx
your "actions" are the verbs, as the docs refer to them
and your conditions are the modifiers, as the docs refer
pro
ok
phx
so, deny/accept/warn so on are actions
hosts = , control = , local_parts =, etc are modifiers/conditions, the message is checked against these
pro
ok, i think i get it now
phx
pro
and a statement is a group of all of those
phx
and here the second is continue=, the one i've suggest you to use
http://exim.org/exim-html-current/doc/html/spec_html/index.html#toc0331
and here are the rest of the conditions
pro
ok, that i dont quite get, let me look at the code and see how it works
ok, i get it now, thats a lot of conditions, i can see some there i want to play with too
spam = i assume you need spam assassin working first?
phx
yes
pro
ok, thank you, i think i understand this much better now
phx
it's really simple. you force the check, and verify the given spamscore, and o whatever you want to do with the message
yw
pro
can i make up my own conditions?
phx
what do you mean by that?
pro
ummm, say on the acl_check_rcpt: i want to have something that will check the rcpt to: and if it matches... no wait, i get it now,
i would check that it is valid, and then do what i want with it later in the router
phx
yes
ACLs are for controlling message arrival basically
pro
like say i wanted to write a vacation thing, i would accept the mail in the acl_check_rcpt: and then in the router i would make something reply saying sorry they got fired last week
phx
routers are for deciding the handling of the message. whether it'll get stored locally, forwarded to another host, redirected to somewhere and so on
transports are the actual
transports are the actual "workers", who will get the delivery done. either to a local mailbox, submitting it to a remote smtp, or anything
pro
ok, i see now
phx
yup, autoreply router for the vacation
pro
so the acls check it, the transports do what they need with the mail, and then the transport will tell it how it should get sent/delivered
phx
something like that, but one of those are the routers
pro
great, this will work awesome
phx, thank you sooo very, very much
phx
yw
pro
this has helped me so much, im no longer copy and pasting stuff and telnetting port 25 and tailing the log to see what its doing, i understand now, (not 100% but i'll get that with a bit of time)
phx
get used to the debugging
man exim, and check the debug options
it won't fork, but trace the debugged subsystems. _very_ useful
i usually ``exim -bd -d<options> | tee log'' to check it
mhm, 2>&1
pro
ok
i usually just watch the log, check the bounce and look in /var/spool/exim4/ at the mails to see what it says in them,
and i have this page book marked, http://bradthemad.org/tech/notes/exim_cheatsheet.php
phx
i never really needed any resources apart from exim.org
pro
my biggest problem was there was too much documentation to read, but the things you have showed me made it better
phx
yeah, true. it needs a day or two at first
pro
i spend a lot of time on deviantart.com and now im banning my self from there until i have read the docs twice
phx
irc is so essential to life...
pro
yes, it is, i have lived on irc since '96
most of my friends only exist on irc
IRL i only have 2 friends in my country still, the rest have gone to the UK, US, AU and NZ
phx
irc since '98 :)
pro
yeah, in 99/2000 i started hanging out more often, cause up until 99 we only had dialup
so i would be on irc for 2 or 3 hours a day only
maestrojed
I have a user that is using IMAP. His account claims he is using 100mbs of his quota. Yet he swears the mailboxes he is syncing are only ~3mbs. Is there a way for me to see this user's mailboxes and their sizes?
kantxx
hey all.. is there a way to trace what is sending mail to root? i think a local daemon or script is but i cant trace it..
« prev