|
Email Help Needed! Having problems with your email service, or with the email software you're using? Post your questions and answers here! |
|
Thread Tools |
2 Dec 2019, 04:04 AM | #1 |
Junior Member
Join Date: Dec 2019
Posts: 1
|
sieve script rejects email w/o message
Here is my sieve script that is supposed to reject a reply to my sent email; the rejection works, but the message does't! Would really appreciate some help on this, since I'm a noob (newbee).
require ["fileinto", "reject", "variables"]; if address :is "From" "do-not-reply.validEmailAddress.com" { reject "Do not attach to this email; attach your article to a NEW email\n"; } Thanks in advance... SpokaneDude |
2 Dec 2019, 08:13 AM | #2 |
Cornerstone of the Community
Join Date: Jun 2004
Location: Rupert, WV
Posts: 879
|
Code:
reject "Do not attach to this email; attach your article to a NEW email\n"; - Bruce |
2 Dec 2019, 08:47 AM | #3 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
I don’t know which email system you are using, since you posted in the general “Email Help Needed!” forum. So I’m going to respond with respect to Fastmail (which has a sub-forum here).
There is no reason to escape a semicolon in a string in a Sieve rule. But the backslash character is ignored in your C-style attempt at adding a new line character (which is not needed). So when I use your rule in a Fastmail Sieve script, the automatically generated reply is: Code:
Your message was automatically rejected by Sieve, a mail filtering language. The following reason was given: Do not attach to this email; attach your article to a NEW emailn Bill |
2 Dec 2019, 08:23 PM | #4 | |
Cornerstone of the Community
Join Date: Jun 2004
Location: Rupert, WV
Posts: 879
|
Quote:
- Bruce Last edited by somdcomputerguy : 3 Dec 2019 at 01:40 AM. Reason: just changed one of the uneccessary commas to a period. |
|
2 Dec 2019, 11:29 PM | #5 | |
Junior Member
Join Date: Aug 2006
Posts: 10
|
sieve script rejects email w/o message
Quote:
Last edited by rmmarsh : 3 Dec 2019 at 12:20 AM. |
|
3 Dec 2019, 11:56 AM | #6 | |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
Troubleshooting SMTP 550 No Such User Here error
Since we are already discussing your issue here in this general forum, I would not double-post. Maybe a moderator could move this thread to the Fastmail sub-forum.
Quote:
https://en.wikipedia.org/wiki/Message_transfer_agent https://en.wikipedia.org/wiki/List_o...r_return_codes Error 550 is usually returned when the recipient "TO" mailbox can not be reached, for example if the TO address was incorrect or did not exist at the given domain on the receiving email system. But it can also be generated if your email client can't properly submit the message due to some problem (typically authentication of your email client due to an incorrect username or password or server port or SSL/TLS encryption problem). So to troubleshoot this:
Bill |
|
3 Dec 2019, 07:29 PM | #7 |
Essential Contributor
Join Date: Dec 2017
Location: Scotland
Posts: 484
|
Right at the start the OP said:
if address :is "From" "do-not-reply.validEmailAddress.com" { ... so maybe the address is syntactically valid but not recognised by the mail host at that domain? Maybe not only are you not supposed to reply to it, but it actually does not exist so you cannot reply to it? Maybe the actual sender's address is something else? |
4 Dec 2019, 12:48 AM | #8 |
Essential Contributor
Join Date: Jan 2017
Posts: 278
|
I don't understand what's supposed to be happening here. It says you want to "reject a reply to my sent email". In that case I would expect the "do.not.reply" to have been in the "From" in your outgoing mail, so your script should be testing "To" in the reply.
|
5 Dec 2019, 06:27 AM | #9 |
Junior Member
Join Date: Aug 2006
Posts: 10
|
What I want to accomplish is when a person tries to respond to the email I have sent them, I want the Fastmail Sieve code to reject their reply with a custom message other than "550 No Such User Here".
I am waiting for the webmaster of the target email system to create the email address "do-not-reply..." which I think will solve the problem. I will get back to this forum as soon as he creates the email address (his wife is in the hospital right now, so I told him "family comes first" and I can wait. Thanks everybody for the comments; I'm sure it will be resolved relatively soon. SpokaneDude |
5 Dec 2019, 06:59 AM | #10 | |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,926
|
Quote:
Code:
550 5.1.1 <bad address placed here>: Recipient address rejected: User unknown in virtual mailbox table If you create a From address at Fastmail for only this purpose, you can use a Sieve rule as you described to create a response. But it is a reject message which will contain the initial content as I described in an earlier post. Bill |
|
5 Dec 2019, 05:54 PM | #11 | |
Essential Contributor
Join Date: Dec 2017
Location: Scotland
Posts: 484
|
Quote:
If the do-not-reply... address IS @target.domain then anyone who does create a reply will send it to the target.domain and you'll never see it so your Sieve code at Fastmail is irrelevant. More to the point though if your original outbound email is From: your address and a reply is sent back to your address, we're not in 550 territory. On the other hand if your original mail leaves with a Reply-To address set to do-not-reply@some.fm.domain then a reply sent to that address either gets to you (because do-not-reply@some.fm.domain IS an address you've set up), or doesn't (if you haven't created it). Or, if FM are hosting your entire domain for you, it presumably will get here... and again there's no 550. I think you need to be clearer about what's going on. - are you using generic FM domains, or are FM hosting your domain? - what are you expecting the webmaster at the target site to do? You are never going to be able to stop someone from sending a reply either to your reply's From address or to its Reply-To address (if you set one) though. Your short example of Sieve code did not show it, but I'm wondering how you're planning to tell that an incoming mail (a) has an attachment, (b) that it's the kind that matters - 'an article', and (c) that it is arriving as a reply to an earlier message of yours and isn't a 'new' mail in the way you advise such users to send things to you? |
|
5 Dec 2019, 10:27 PM | #12 |
Junior Member
Join Date: Aug 2006
Posts: 10
|
It works!
Morning everybody... the fix was to have the email address (do-not-reply...) as a valid email address on the server... works like a charm!
Thanks to all who gave me their ideas...couldn't have done it without your comments! SpokaneDude |
6 Dec 2019, 12:06 AM | #13 |
The "e" in e-mail
Join Date: Apr 2011
Location: Manchester UK
Posts: 2,616
|
SpokaneDude & rmmarsh are the same person?
|
Thread Tools | |
|
|