Deliver to sender instead of recipient

2013-07-25 Thread Fernando Gozalo
Hi, How can I deliver the messages to the mailbox of the sender instead of the mailbox of the recipient? Explanation: Developers want to test their applications using a pre-production system. Their applications send mail. So I must configure a smtp server that receive the messages the same

Re: Deliver to sender instead of recipient

2013-07-25 Thread Wietse Venema
Fernando Gozalo: Hi, How can I deliver the messages to the mailbox of the sender instead of the mailbox of the recipient? /etc/postfix/main.cf: smtpd_sender_restrictions = pcre:/etc/postfix/sender_access /etc/postfix/sender_access: /.+/redirect $1 Documentation:

Re: Deliver to sender instead of recipient

2013-07-25 Thread Ralf Hildebrandt
* Wietse Venema wie...@porcupine.org: Fernando Gozalo: Hi, How can I deliver the messages to the mailbox of the sender instead of the mailbox of the recipient? /etc/postfix/main.cf: smtpd_sender_restrictions = pcre:/etc/postfix/sender_access /etc/postfix/sender_access:

Re: Deliver to sender instead of recipient

2013-07-25 Thread /dev/rob0
On Thu, Jul 25, 2013 at 08:26:24PM +0200, Ralf Hildebrandt wrote: * Wietse Venema wie...@porcupine.org: Fernando Gozalo: How can I deliver the messages to the mailbox of the sender instead of the mailbox of the recipient? /etc/postfix/main.cf: smtpd_sender_restrictions =

Re: Deliver to sender instead of recipient

2013-07-25 Thread Viktor Dukhovni
On Thu, Jul 25, 2013 at 03:03:57PM -0500, /dev/rob0 wrote: Doesn't this require ()? /(.+)/ redirect $1 Yes, it does. or are the () implied if there's only one match group So no, apparently you are right. Or this might vary with different PCRE implementations? No, this behaviour