-1

I configured catchall for postfix as follows:

# vim /etc/postfix/virtual
@example.com  test

So if we send mail to [email protected] will get delivered to [email protected]. But the problem was it always shows the same user name in the mail header "[email protected]". I created a script for checking the mail header, so that I need the particular user@example should be display at the mail header, since I need to differentiate all the users. Please help me how to configure the postfix, so that I will get this outcome.

Sudden answers would be appreciated

1
  • 1
    What header are you talking about? An example of what you're seeing would help.
    – user143703
    Jan 31, 2014 at 18:14

1 Answer 1

0

My catch-alls are usually defined like this in the virtual_mailbox_maps:

[email protected] virtualdomain.com/me
@example.com virtualdomain.com/me

The virtualdomain.com is defined in virtual_mailbox_domains.

This setup doesn't create a forward, but it just drops it in the same place.

To be complete, this is my complete virtual configuration:

virtual_mailbox_domains = /etc/postfix/virtual_domains
virtual_mailbox_base = /var/mail/vhosts
virtual_alias_maps = hash:/etc/postfix/virtual_aliases
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 7
virtual_uid_maps = static:8
virtual_gid_maps = static:8

The virtualdomain.com would then expand to /var/mail/vhosts/virtualdomain.com

Don't forget to run postmap on the files referenced with hash, to create a .db file.

You must log in to answer this question.

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