-1

We are running a mail server with postfix mta. But now to are moving to EXIM, as it has a lot of features inbuilt without using milters.

In postfix you can deliver to non system users quite easily by just creating a file say /etc/nonsysmail.txt and putting in it simple lines like:

[email protected]   nonsysmail/nonsystemUserA/
[email protected]   nonsysmail/nonsystemUserB/
[email protected]   nonsysmail/nonsystemUserc/  
*@mail.virtual.host   nonsysmail/nonsystemUserAll/

postmap /etc/nonsysmail.txt

Is there someway to achieve same with EXIM too, using just plain text files. I am not allowed to use mysql db there. Can someome suggest me full procedure for using non system virtual users with EXIM mta.

1 Answer 1

2

It depends on your exact exim config, but it boils down to adding an extra transport after the real_local transport, such as:

virtual_local:
    driver = accept
    domains = +local_domains
    local_parts = lsearch;/etc/exim/virtual_users
    transport = virtual_maildir

This will lookup the name in the given file, and if found use the named transport to deliver the message; if not found processing is passed on to the next router.

The virtual_maildir transport will be something like:

virtual_maildir:
    driver = appendfile
    maildir_format
    create_directory = true
    directory_mode = 0700
    directory = /var/spool/virtmail/$local_part
    # or: directory = lsearch;/etc/exim/virtual_users
    user = virtmail
    group = virtmail
    mode = 0660
    mode_fail_narrower = false
    return_path_add
    envelope_to_add
    delivery_date_add

Things may have to be tweaked a bit, this is off the cuff. exim's debugging output is excellent for tracking down problems; for debugging everything in a delivery

exim -bv -d+all [email protected]
12
  • This i found at wiki2.dovecot.org/HowTo/VirtualhostingWithExim and i already tried and no success. this needs prediction. thnk u @wurtel
    – Jon lee
    Mar 24, 2015 at 10:25
  • I wrote the above based on my own config, not from some wiki.,What do you mean: this needs prediction ? What didn't work? What did the debug output for a delivery (using the command I showed) tell you?
    – wurtel
    Mar 24, 2015 at 10:28
  • i found approx. same solution at above url. it needs prediction (horms.net/projects/perdition) however accept my apologizes, as it was urs. come to point. after putting above routers/transprts. squirrelmail says -- Message not sent. Server replied: Requested action not taken: mailbox unavailable 550 Verification failed for <[email protected]> Unrouteable address Sender verify failed
    – Jon lee
    Mar 24, 2015 at 12:03
  • exim mainlog: 2015-03-25 01:44:46 H=localhost (mail.myserver.com) 127.0.0.1 sender verify fail for <[email protected]>: Unroutable address
    – Jon lee
    Mar 24, 2015 at 12:08
  • exim mainlog: timestamp H=localhost (mail.myserver.com) [127.0.0.1] F=<[email protected]> rejected RCPT <[email protected]>: Sender verify failed
    – Jon lee
    Mar 24, 2015 at 12:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .