Using both maildir and .forward for postfix

1

I have a postfix server for handling mail, and trying to finalize my user configuration.

  • If I put a .forward file in a user home directory to redirect his mail, it works.
  • If I remove it, to use the maildir with dovecot, it works.

I'm looking for a way to do both : save the mail in maildir and forward it to an other address (for backup).

Is it possible without putting it directly in /etc/mail/aliases ?
I would like to keep a per-user configuration as much as possible.

Levans

Posted 2014-01-03T11:20:23.377

Reputation: 2 010

Answers

1

It's dead simple. Put a second entry in the .forward file that causes delivery to the maildir. Or just list the user in xyr own .forward file. man 8 local for details.

JdeBP

Posted 2014-01-03T11:20:23.377

Reputation: 23 855

Ok, adding a second entry with \username does it. – Levans – 2014-01-03T13:07:27.103