logs archiveIRC Archive / Freenode / #exim / 2010 / March / 18 / 1
henk
does anyone know of a spamtrap setup with exim? i'd like to use it to locally blacklist sending hosts... or at least delay them.
pro
hi guys, can someone point me to a doc i can read to reject mails based on words i find in the subject ?
Zathraz
check filter
there are user filters and systemfilters
pro
Zathraz, i dont know exim too well, what does filter mean?
ok, wait, i see how this works
Zathraz
http://www.exim.org/exim-html-current/doc/html/filter.html
pro
i found this... http://www.exim.org/exim-html-4.50/doc/html/spec_40.html
(Action) reads yours too
mmmm, regex....
i once read something that said...
when people have a problem, they think, "I know, i'll use regex", now they have 2 problems
Zathraz
lol
henk
'g'
pro
cool, i have something thats working, now i just need to figure out how to make a text file with the words in it
exim is magic, i dont know how it knows when i type regex = ^Subject:: *.lottery that it knows to use regex
         

Zathraz
just lottery? No Rusian-Mailorder-Brides, Viaga, Nigrian people with blocked bank account? :P
pro
do you guys know how i can add more terms?
yeah, well thats the one i tested it works with, but now i have a regex problem :D
Zathraz
pro, what are you trying to do? Spam-filtering?
pro
Zathraz, yes
but i dont want to go the spamassassin route
Zathraz
the route you are taking now will not work
pro
cause these guys have some antispam thing called ironport or something their MX record points to that system and then it relays the mail down to a exim4 box, but there are some of these things getting through
no i just want to make a text file they can paste some words into that it will reject those mails
see i cant use greylisting cause its only one server that sends mail to them
and i cant teach someone there about spamassassin,
cool this seems to be working nice
slackerr
hi all. try to first-time configure exim using docs as "internet site; mail is sent and received directly using SMTP" Server has static ip and domain name. Mail from my server sends well, but cant recieve it. From outside client it looks like "error 550". Docs says me to "enter the IP ranges your exim should relay for". What i need to enter to enable mail from all?
henk
slackerr: nothing.
slackerr: there is a difference between 'relaying' and 'receiving' mail...
slackerr
henk: but it causes that erroe, isnt it?
henk
your 550 error has some other cause. check the logs.
and 'error 550' is pretty surely not everything exim says in the smtp dialog. try with telnet. you might also try with exim -bh
slackerr
# exim -bh
exim abandoned: unknown, malformed, or incomplete option -bh
henk
slackerr: rtfm
slackerr
henk: ok
kiri
:-)
slackerr
triied cause that error again, sent email to my server. but nothing new was found in logs
(error still alive)
henk
slackerr: can you paste a telnet smtp session with your server?
or a raw session log if your client provides it?
slackerr
henk: telnet connects well, saying "220 debian ESMTP Exim 4.69 Thu, 18 Mar 2010 12:37:12 -0400"
henk
slackerr: a _session_
not just connecting
slackerr
how to provide it? sorry i'm new in mailserver config, so may questions may be silly
henk
slackerr: either use exim -bh properly or google for 'telnet' and 'smtp'... there are enough examples.
         

slackerr
henk: thanks. i understood. now i'm trying make session
it fails on
RCPT TO: user@myhost.com
503 sender not yet given
henk
slackerr: you are missing 'MAIL FROM:'
slackerr
seems like mail message through telnet session was recieved correcty
but from google causes this trouble 550
*received
henk
check your log... if there's nothing in there, something's going wrong. perhaps your google smtp server is already refusing to SEND the mail to your server?
slackerr
i dont see info in logs.. how to check this? or should i try to send mail from other mailers?
maybe there is possible to increase debug level in logs. now ill check this
Zathraz
is there a way to either have the "mail" command or "exim -bh" to be more verbose (and show all headers of an email) ?
henk
slackerr: it's worth a try... if you tell me your domain i can also try to send an mail to you.
slackerr: it's usually in /var/log/exim/rejectlog or mainlog (for debian)
slackerr
its debian and its both there
henk
and if your server rejects the mail, you should have an entry in the rejectlog...
Zathraz
maybe port 25 is blocked by either your firewall or your isp?
hmm. nm that's for sending. Receiving is the issue
slackerr
ports 25 and 110 are opened
henk
slackerr: are you sure exim knows about its own domains? it just reject any address i'm trying...
slackerr: so either the server in the MX record for your domain is not your mailserver or it does not know about your domain and does not feel responsible or your config is borked in some other way.
slackerr
henk: i typed given domain name in config
henk
slackerr: apart from that i'm not going to say anything else until i see a exim -bh output... that's probably most helpful.
slackerr
henk: -bh option must have actual network interface, not local?
henk
slackerr: afaik that has _nothing_ to do with network interfaces...
slackerr
if i give nothing to this option it says 'exim abandoned: unknown, malformed, or incomplete option -bh'
if my ip addr, its work well
now try to make this session
henk
slackerr: read the manpage on -bh. you are getting it wrong.
Zathraz
slackerr, exim -nh 127.0.0.1 should work fine
*bh
slackerr
Zathraz: but i need to test non-local mail
Zathraz
uhm. just read the manual pls
btw: have you configured things manually or did you use debconf?
slackerr
dpkg-reconfigure exim4-config
Zathraz
should work fine normally
slackerr
it would be great to see real working config of some host in directly smtp confuguration. if somebody wants, send me please (replacing any private host information). its better for learning than many questions imo
henk
(Action) .oO( exim -bh )
Zathraz
we still have no clue about your setup....
you stated: I cannot receive mail: how do you receive mail and with what? How did you came to the conclusion you cannot receive mail?
what is fetching your mail?
slackerr
i started exim4 confiure from begin
basic config permits me sending mail, but not receiveing
henk
Zathraz: do you really think this is gonna lead somewhere? why should he give us infos now but not all the time before? i guess he has no clue about exim and no clue about mail so we have to rely on exim commands and their output to actually get the info we need...
Zathraz
slackerr, there is no such thing as "a mail server". Exim is a MTA. please read some docs as this is going nowhere
waste of your time and ours
slackerr
ok, i will continue reading debian docs. really need to get more info by himself
Zathraz
slackerr, http://en.wikipedia.org/wiki/Mail_transfer_agent
gl
Faustov
hello
does it make sense to drop any mail from a domain that does not resolve to an ip address?
henk
Faustov: normally yes. depends on how reliable your dns resolver is ;)
Faustov
henk: no complains :>
henk
Faustov: iirc that's what sender/verify does with callouts disabled. but i might be mistaken.
gotta go, have fun
Faustov
henk: I see, but I'd like to disable reverse lookup, have just host lookup
and I think verify = sender does both
damn... :>
ries
hey guys, where can I find the configuration file of exim? /etc/exim seems to be pretty much empty
CunningPike
Faustov: In our experience, rDNS checks don't add much - spammers fail other tests. The only senders that fail that test only are legitimate, clueless ones
Faustov
CunningPike: I see, but I get mail from spammer@somedomain.local or a domain that does not resolve to any IP - I'd like to drop those automatically, since it is easier than analyzing the mail contents
CunningPike
Faustov: Absolutely - so check for '.local', that's all I'm saying. Someone failing rDNS and nothing else causes deliverability issues, in our experience. ymmv
Faustov
CunningPike: host_lookup = *.local would be the fastest way I presume?
CunningPike
Faustov: Just block .local directly - it would never resolve, so why bother looking it up?
Faustov: http://www.sput.nl/software/exim.html
Check out those samples of various checks to run
Some are a little strict for business use, but it's a good starting point
Faustov
thanks, looking into it
ries
Hey guys, how can I set my from domain name for exim? Now it shows foo.bar.host, and I don't want to change my hostname of the server at this point
CunningPike
ries: Found nothing in the docs or sample conf, huh
ries
CunningPike: I don't know exim.... but I thing it's primary_hostname
CunningPike
ries: Yup - also look at smtp_active_hostname
henk
ries: you should have proper output of 'hostname' and 'hostname -f' for various reasons. can be a hard to track source for errors... so better fix it soon!
ries
henk: yeaa I am doing right now...
For one reson or the other the planet doesn't have proper reverse records there hostnames look like mydomain.theplanet.host
romel_
hi everyone
henk
(Action) .oO( hm is it me or the missing punctuation that make me not understand what he just said? )
romel_
I have already asked this question but nobody answered so let me repeat :)
hi guys. What happens if I put 'hostlist some_hosts = mysql;SOME_QUERY' into my exim's config file? When this query run? Just once at exim's start, right?
CunningPike
ries: What is an actual hostname that gets returned?
ries
CunningPike: d2.5b.79ae.static.theplanet.com
CunningPike
ries: And that is not a "proper" hostname how, exactly?
ries
I changed it to that, untill I figured out that doesn't pointed to my IP :s
That hostname doesn't resolve...
CunningPike
!dig d2.5b.79ae.static.theplanet.com
ries: Ah - well, that is a fail, yes
ries
I changed it from mydomain.theplanet.host
so now I creating proper hostnames... รง
svuorela
hi nice people. I'm using a setup (stolen from the internets) about virtual domains in mail setup. basically I have a file called example.com and in here I have lines like webmaster: svuorela and mummy: other@gmail.invalid. is there some way I can add several emails to the same or do I need to play around with system filters or such ?
« prev next »