logs archiveIRC Archive / Freenode / #exim / 2010 / June / 9 / 1
carbonator
is there a simple setting that makes exim accept everything and store it in the mailbox of an existing system user (mbox in home)?
phx
everything on what level?
but yes, read the doc
carbonator
phx> everything that goes to port25 basically
phx
sure, docs
you need an unseen router and a transport that stores it
carbonator
phx> ahh, ok. I'll read up on this thanks (might come back though ;) )
phx> eh, it's maildir, not mbox. but I don't think this makes much of a diff?
phx
maildir/mailbox is all about how do you make the transport
carbonator
phx> ok
djce
carbonator: it's unclear from your original question whether you want each message to be delivered /only/ to this mailbox, or to this mailbox /as well as/ its usual destination.
phx's reference to the "unseen" option assumes the latter.
carbonator
djce> only to the maildir. it's a dev-box and the admin wants this setup to test stuff (user and imap access already works fine)
         

djce
And it should accept all domains, and all addresses at those domains?
carbonator
djce> each and every bit, yeah
djce
ok. All you need then is:
phx
then you don't even need the unseen option
djce
- make it listen on port 25
phx
but honestly you're better off with a maildir
djce
- set all the ACLs ("rcpt" especially) to "accept"
- one router, which accepts everything
phx
it's a lot easier to check the messages from a text terminal that way
djce
- one transport, which delivers it to a Maildir, or mbox, or whatever.
carbonator
phx> I have it set up to use maildir in the homedir of the user that will get the mails. sqwebmail is already working too
djce
And finally, just beware that if this box is on the Big Bad Public Interweb then you'll attract the attention of open-relay testers, which could be a bad idea.
carbonator
djce> thanks, I'll try to get it running that way. also, it's shielded from the net, so spam is nothing to care about
Zathraz
djce, remember my stupid question about "mail" yesterday? http://caspian.dotconf.net/menu/Software/SendEmail/ turned out to be a nice replacement
djce
cool, glad you found something.
Zathraz
echo "test" | mail -s "tst subject" test@example.com ended up in a 503 error for some reason while mailing from perl worked fine. Strange config at that hoster....
local vs remote SMTP was not even the issue as it turned out
carbonator
ok, I think I have the acl and router under control. but I'm stuck with the transport. I tried setting the directory manually in 30_exim4-config_maildir_home, but delivery fails with "cannot chdir" although it exists
phx
debian!
carbonator
phx> yeah :/
lilphil
Hi all, I'm struggling with a verify_only accept router that does an ldap lookup. I have a condition (the ldap lookup) and "no_more" at the end. The router is skipped on condition failure and processing continues rather than rejecting. Is this an incorrect use of condition?
carbonator
don't I have to tell exim in router which mailbox gets all the mails?
         

lilphil
not sure what you mean by that carbonator
carbonator
lilphil> I want to have everything that gets to port25 end up in one maildir. already set all acl to accept, but turns out my router doesn't work as planned
lilphil
your transport would be where you're setting the maildir location
carbonator
lilphil> I've tried "catch_everything:\ndriver = accept\ntransport = LOCAL_DELIVERY". when I set "directory" in 30_exim4-config_maildir_home to an existing maildir, things fail
lilphil
first bit of advice i can give, if youre using debian then try not to alter the config files that debian provide. work with them and add new ones, then when you do an apt-get upgrade you don't get asked about them!
so i'd create a new transport
probably looking something like...
30_local-config_maildir_singleuser
or sth
catch_everything_transport:
driver = appendfile\n user=yourusername\n group=yourgroup\n mode=0600\n directory=/home/username/Maildir
you might want create_directory = true in there to autocreate the maildir
maildir_format = true will be needed too
carbonator
lilphil> ahh, that should help a bit :) thanks
lilphil
np
carbonator
lilphil> going to give this a test tomorrow, since work's over now :)
lilphil
alright for some :)
next »