Community Discussions and Support
conditional SMTP relay

I use the above process on my server; I have the main instance of M32 that filters all the outgoing mail.

If  the "From" header = a.com, message is processed by the main instance.

If the "From" header = b.com, message is moved to the mbox b-out, where wsmtpex gets it, and forward it to the "B" instance of M32.

If the "From" header = c.com, message is moved to the mbox c-out, where wsmtpex gets it, and forward it to the "C" instance of M32.

 

Unfortunately there is a couple of cons (at least, here)

1) when the msg is moved to the b-out or c-out, the "From" header is removed.

2) it seems that wsmtpex does not support multiple recipients; so, if I send an email to - say - myfriend1@gmail.com and myfriend2@gmail.com, only the last receives it, because all the other addresses are lost.

 It may be a misconfiguration, but I couldn't get rid of this.

 

Best regards

Filippo

<p>I use the above process on my server; I have the main instance of M32 that filters all the outgoing mail.</p><p>If  the "From" header = a.com, message is processed by the main instance. </p><p>If the "From" header = b.com, message is moved to the mbox b-out, where wsmtpex gets it, and forward it to the "B" instance of M32.</p><p>If the "From" header = c.com, message is moved to the mbox c-out, where wsmtpex gets it, and forward it to the "C" instance of M32. </p><p> </p><p>Unfortunately there is a couple of cons (at least, here) </p><p>1) when the msg is moved to the b-out or c-out, the "From" header is removed.</p><p>2) it seems that wsmtpex does not support multiple recipients; so, if I send an email to - say - myfriend1@gmail.com and myfriend2@gmail.com, only the last receives it, because all the other addresses are lost. </p><p> It may be a misconfiguration, but I couldn't get rid of this.</p><p> </p><p>Best regards</p><p>Filippo </p>

We currently use MercuryC to relay our mail through an outside company.

That company has implemented outbound spam filtering now.

Is it possible to have a second instance of Mercury, and do a conditional relay of outbound mail based on header information ?

 In other words, I'd like to send all mail out via MercuryC, except email with a FROM address of MYDOMAIN.com and a TO address of GMAIL.com - these I would like to send outbound directly (probably through a second instance of Mercury).

 

<p>We currently use MercuryC to relay our mail through an outside company.</p><p>That company has implemented outbound spam filtering now.</p><p>Is it possible to have a second instance of Mercury, and do a conditional relay of outbound mail based on header information ? </p><p> In other words, I'd like to send all mail out via MercuryC, except email with a FROM address of MYDOMAIN.com and a TO address of GMAIL.com - these I would like to send outbound directly (probably through a second instance of Mercury). </p><p>  </p>

I haven't tested this but it should probably work to have an outgoing filtering rule move messages that match that criteria to a specific mailbox, and then have WSMTPEx (see http://community.pmail.com/forums/thread/22614.aspx) send everything in that mailbox on to the other Mercury instance.

/Rolf 

<p>I haven't tested this but it should probably work to have an outgoing filtering rule move messages that match that criteria to a specific mailbox, and then have <span style="font-family: Tahoma, Arial, Helvetica; font-size: 12px;">WSMTPEx</span> (see <a href="http://community.pmail.com/forums/thread/22614.aspx">http://community.pmail.com/forums/thread/22614.aspx</a>) send everything in that mailbox on to the other Mercury instance.</p><p>/Rolf </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft