View Single Post
Old 8 Oct 2017, 04:59 PM   #29
FromLine
The "e" in e-mail
 
Join Date: Jan 2002
Posts: 2,619
Question

Quote:
Originally Posted by n5bb View Post
* If it is From the gov sender, the first conditional clause is executed and a reject bounce message is generated.
At this time, I'm using "gmail.com" instead xxxx.ca.gov to test.

Sending from a Gmail account (a "gmail.com" address) and not getting a bounce message at gmail.

Again, here's the code I'm using:

Code:
if allof (
  header :contains ["From", "X-Mail-from", "Return-Path"] "gmail.com",
  header :contains ["X-Resolved-to"] ["adam+reject@axxxxx.com"] 
) {
  reject "Please don't use this address!";
  stop;
}
elsif header :contains ["X-Resolved-to"] ["adam+reject@axxxxx.com"] {
  discard;
  stop;
}
Why is the sender, from gmail.com, not getting a bounce?
FromLine is offline   Reply With Quote