Send some email to blackhole depending on email domain name
Hello,
We have some trashing email sent from a CMS @trash.com example, to be sent to the end client.
We would like to avoid all exim Mail delivery failed messages, we know that these domains won't reply.
We try to set up a fail rule under exim config file SSH or a rule under Cpanel filter using "to" and containing domain name... but we keep receiving "Mail delivery failed: returning message to sender" alert email every day....
if someone could help ?
Thank you
-
Hello, Could you let us know the specific filter rule that you added via cPanel? Also, what have you configured for this domain name under the "Default Address" option in cPanel? Thank you. 0 -
Hi : default address "Forward to Email Address" is our gmail.com email Filter is : Rules "To" "contains" "@domain@ Action "Discard" 0 -
Hello, Could you let us know the output from /var/log/exim_mainlog for one of the affected messages? EX: exigrep user@example.tld /var/log/exim_mainlog
Replace "user@example.tld" with one of the affected email addresses. Ensure to remove any real domain names from the output. Thank you.0 -
+++ 1dGpZf-0000aG-FC has not completed +++ 2017-06-02 18:37:19 1dGpZf-0000aG-FC <= Contact@mydomain.com U=legastro P=local S=14799 id=20170602163719.1153.763411037.swift@www.mydomain.com T="[mydomain.com] Livr\351" for c.9a99148694314eeb8e241dda54c02500@domaintoblacklist.com 2017-06-02 18:37:19 1dGpZf-0000aG-FC SMTP connection outbound 1496421439 1dGpZf-0000aG-FC mydomain.com c.9a99148694314eeb8e241dda54c02500@domaintoblacklist.com 2017-06-02 18:37:19 1dGpZf-0000aG-FC H=mail1.domaintoblacklist.com [***.***.***.***]: SMTP error from remote mail server after RCPT TO:: 450 4.7.1 : Helo command rejected: Host not found 2017-06-02 18:37:19 1dGpZf-0000aG-FC == c.9a99148694314eeb8e241dda54c02500@domaintoblacklist.com R=dkim_lookuphost T=dkim_remote_smtp defer (-44) H=mail1.domaintoblacklist.com [***.***.***.***]: SMTP error from remote mail server after RCPT TO:: 450 4.7.1 : Helo command rejected: Host not found 2017-06-03 02:48:38 1dGpZf-0000aG-FC H=mail1.domaintoblacklist.com [***.***.***.***]: SMTP error from remote mail server after RCPT TO:: 450 4.7.1 : Helo command rejected: Host not found 2017-06-03 02:48:38 1dGpZf-0000aG-FC == c.9a99148694314eeb8e241dda54c02500@domaintoblacklist.com R=dkim_lookuphost T=dkim_remote_smtp defer (-44) H=mail1.domaintoblacklist.com [***.***.***.***]: SMTP error from remote mail server after RCPT TO:: 450 4.7.1 : Helo command rejected: Host not found0 -
SMTP error from remote mail server after RCPT TO:: 450 4.7.1 : Helo command rejected: Host not found
Hello, This suggests a rejection at SMTP time as opposed to a bounce. Are you receiving an actual bounced message, or do you simply notice an error in your email client? Thank you.0 -
Hi, I notice notice in email client (too many, that's we want to stop) 0 -
What are your settings under, cPanel > Mail > Default Address? 0 -
Forwarded to our maintenance email adress 0 -
That may be why you're getting pounded with spam. I've gone by this rule for many years: Why you should use :fail: 0 -
ok but, what if we want to receive email sent to a undefined alias ? this will go to :fail: ? in our case we want to block outgoing email to avoid receiving bounce msg from server not redirecting incoming emails 0 -
My apologies, not enough coffee yet this morning to understand that comment. 0 -
default email address is the catch all process, to catch emails : This interface allows you to set up a default address (catch-all address) that receives any mail for an invalid email address for the domain. You can also define how the default address handles incoming messages. Default Address - Documentation - cPanel Documentation if someone send email to : toto@domain.com, this email is routed to our maintenance address, nothing wrong here in our case we send emails to a dummy address @dummydomain.com, and we don't want exim to proceed with this particular email, it's a kind of outgoing filter ? 0 -
if someone send email to : toto@domain.com[/EMAIL], this email is routed to our maintenance address, nothing wrong here
If someone sends an email to infopro @ yourdomain.com for example, you'll get that too though.in our case we send emails to a dummy address @dummydomain.com, and we don't want exim to proceed with this particular email, it's a kind of outgoing filter ?
Can you expand on this part a bit more?0 -
we have some email of the kind : donotreply@domaintrash.com (not our domain) we know that the domain : domaintrash.com is just here to send a (php script) message to nowhere sometime, so if exim try to send the email customer@domaintrash.com we will receive the bounce.. and it's annoying. so we would like to say to exim, if someone (php script for instance) try to send email to @domaintrash.com, don't do and don't notice 0 -
You have an account on your server[?] that has a php script that sends email using a non existent email address to a non existent email address. And those emails bounce and come back to that cPanel account's default address, which you forward to a real email address. Is that it? 0 -
You have an account on your server[?] that has a php script that sends email using a non existent email address to a non existent email address. And those emails bounce and come back to that cPanel account's default address, which you forward to a real email address.
it's an existent email address that send to an non existent email address, and yes these emails bounce back to our sender address0 -
Ok dumb question then, why is it sending emails at all? 0 -
:-) ah ah it's an automated script, we can filter directly into the php files, but as we are braves we would like to challenge exim filters... but with no success... 0 -
Spam script? We have some trashing email sent from a CMS @trash.com example, to be sent to the end client.
0 -
not at all... ecommerce and marketplace, as market place like amazon doesn't accept emails from outgoing, so we dowload email from the order order999@amazon-do-not-reply.com but this email is of course faulty... we could filter this in PHP level, but it will depend some time market place allow this so... 0 -
I notice notice in email client (too many, that's we want to stop)
Hello, You can't filter messages that are rejected at SMTP time, but you can modify the following options under "ACL Options" in "WHM >> Exim Configuration Manager >> Basic Editor" to change when Exim rejects a message based on it's HELO address: Require HELO before MAIL Require remote (hostname/IP address) HELO Require remote (domain) HELO Require RFC-compliant HELO Each option has a "?" icon with a description of how it works when viewing the options in WHM. Thank you.0
Please sign in to leave a comment.
Comments
21 comments