Sendmail catchall for sending messages -


i trying change development environment emails sent machine through sendmail redirected single address.

i have seen several examples using feature(`virtusertable')

@example.com          catch-all@delivery.host.name 

but problem want catch everything, not @example.com, , redirect single address on external domain (gmail). have sendmail setup on centos 6.5.

so, example, want catch emails sent

user@examplea.com user@exampleb.com user@examplec.com 

and redirect them

dev@myactualserver.com 

how set sendmail that?

you may use smart host catch outgoing messages (messages non local mailboxes).

sendmail.mc

define(`smart_host',`local:catch-all') 

/etc/mail/aliases

catch-all:  johndoe1 

if want send messages external account using smtp use:

define(`smart_host',`esmtp:johndoe1@example.net') 

use luser_relay catch messages non existing local mailboxes in local email domains.

use mail_hub catch messages local email addresses in local email domains.

more complicated recipes allow copy envelope recipient addresses email headers.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -