logs archiveIRC Archive / Freenode / #exim / 2009 / November / 19 / 1
leikh
In 30_exim4-config_check_rcpt I deny senders based on a regex for noreply* addresses.Can I deny based on reply-address as well?
that is based on reply-to header, I mean...
yang
I always forget the address of remote telnet relay test ?
ok - telnet relay-test.mail-abuse.org
kantxx
how can i get exim to deliver local system main properly? i keep getting messages like "user@fqdn.com R=dnslookup defer (-1): remote host address is the local host"
cannonball: any idea?
cannonball
So you're sending to domain@example.com or domain@mail.example.com ?
It's telling you that fqdn.com is not in the domainlist +local_domains .
kantxx
well i have that dovecot setup.. for virtual domains.. but i need to allow sys mail to deliver..
cannonball
make a separate router.
and transport.
the transport probably already exists, you just have to make the router deliver to it or make a new one specifically for the case of the local host name.
kantxx
so i can simply use localuser: ?
cannonball
I don't do local deliveries, so I really don't know :-/
kantxx
cannonball: heh i could even do without them
but the messages wont stop :(
looks simple i think
         

cannonball
What does your localuser: router look like?
Put it and the transport it references in a pastebin.
kantxx
yeah
i think thats it
sec
cannonball: hmm i added the router/transport,, still same message
cannonball
You need to debug why it's not using it. You know how to use the exim -bh command line?
kantxx
never needed to no
however maybe it is working..
mail pulls nothing
but lookin @ the file i see stuff
cannonball
Where is "mail" looking?
kantxx
how can i tell?
i never used `mail`
cannonball
Default is to deliver to /var/mail/${local_part} (where ever you configured it in the "file = /path/to/file" statement), but most modern linux systems put it in /var/spool/mail/${local_part}, so most modern linux systems have /var/mail as a symlink to /var/spool/mail.
kantxx
cannonball: yeah /var/mail is a symlink
:P
odd that it tells me no mail
cannonball
what user are you?
and what uid?
and what is the ownership/permissions of the file that exim is appending to?
kantlivelong
root and shawn
and root does have mail i nthe file
hmmm
cannonball
Also, there is a difference between 'su' and 'su -' if you are using that to switch between users.
kantlivelong
hmm
doh
i was just using su
lolz
so it is working then
hmm
interesting
cannonball
It could have nothing to do with it, but I would try it.
su - user modifies all the environment variables, whereas su just elevates the uid (but leaves env vars as the user you switched from).
kantlivelong
yeah
(Action) wasnt thinking
cannonball
CentOS53[root@ivwm51 ~]# su www
CentOS53[www@ivwm51 root]$ env | grep MAIL
MAIL=/var/spool/mail/root
CentOS53[www@ivwm51 root]$ exit
CentOS53[root@ivwm51 ~]# su - www
[www@ivwm51 ~]$ env | grep MAIL
MAIL=/var/spool/mail/www
kantlivelong
cannonball: i forgot.. i gotta tag on the local domain
do u remember what we came up w/ ?
woot
its working
cannonball
You mean add the hostname to the list of local domains?
Ok, good.
I was just looking through our last conversation (I have xchat set to keep like the last 5000 lines in each window).
But I couldn't really find what it is you were asking.
kantlivelong
yeah i just did lsearch
:P
domainlist local_domains = ${MYSQLQUERY} : learch;/etc/localdomains
:)
« prev next »