email couldn't be delivered

Alan John Fergy

Verified User
Joined
Feb 24, 2009
Messages
27
Location
Germany
I have a very special problem, I cant send emails between two accounts within a domain.

But this error happends only with html mails with pictures, with plain text mails I got no problems.

First I thought it's the spam filter, I switched them totally off, but no chance.
My configuration is exim and dovecot in the lastest version on Fedora 7, even DA is 1.35.1
The error message in the mail-log is:
discarded <sabine@XXXXXXXXXXXXXXXX> R=domain_filter

Have anyone got a solution?

I would be very happy!
 
The error message in the mail-log is:
discarded <sabine@XXXXXXXXXXXXXXXX> R=domain_filter

It was discarded because of a filter for that particular domain.
 
I'm guessing (I know that's dangerous :)) that the poster has run into one good reason to not block emails from your own domain; I've mentioned this previously as a reason to not block email from your own domain.

Jeff
 
But for this particular user there is no block for his domains himself. Where is the flag or command line and in which file, that can block emails form the own domain. I try it when spam filters off! But plain text email were delivered!!!
 
I've checked the logs - only in the "mainlog" file was an entry :

2010-04-10 21:55:39 1O0gmH-0003zM-RA <= news@XXXXXXX H=174-41.XX-XXX.cust.XXXXXXXX ([192.168.X.XX]) [188.62.XX.XXX] P=esmtpa A=plain:news@XXXXXX S=401871 id=4BC0D431.7070XX@XXXXXXXXX T="Fruehlin" from <news@XXXXXXXXXXX> for fruehjahr@XXXXXXXXXXX
2010-04-10 21:55:39 1O0gmH-0003zM-RA => discarded <fruehjahr@XXXXXXXXX> R=domain_filter
2010-04-10 21:55:39 1O0gmH-0003zM-RA Completed
 
Last edited:
Post #3. Keep looking. Check the filter file for the domain in /etc/virtual
 
the filter files in /etc/virtual/ are all empty only in the pophosts_user there are entries for that domain ( is this maybe the reason?)
In the virtual domain files for that specific domain there is only "standard" I've already commmended out, but with no effect.


Filter for this domain:


# Exim Filter

# created by DirectAdmin, version 1.35.1
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)

if error_message then finish endif



if
$header_subject: contains " sex " or $message_headers contains " sex " or $message_body: contains " sex "
or $header_subject: contains "sex" or $message_headers contains "sex" or $message_body: contains "sex"
or $header_subject: contains "viagra" or $message_headers contains "viagra" or $message_body: contains "viagra"
or $header_subject: contains "Edelarmbanduhr" or $message_headers contains "Edelarmbanduhr" or $message_body: contains "Edelarmbanduhr"
or $header_subject: contains "ChronometerFranck" or $message_headers contains "ChronometerFranck" or $message_body: contains "ChronometerFranck"
or $header_subject: contains "Chrom-Canadium-Stahl" or $message_headers contains "Chrom-Canadium-Stahl" or $message_body: contains "Chrom-Canadium-Stahl"
then
seen finish
endif



if
$header_subject: contains "****" or $message_headers contains "****" or $header_from: contains "****"
or $header_subject: contains "****" or $message_headers contains "****" or $header_from: contains "****"
or $header_subject: contains " ass " or $message_headers contains " ass " or $header_from: contains " ass "
or $header_subject: contains "asshole" or $message_headers contains "asshole" or $header_from: contains "asshole"
or $header_subject: contains "bitch" or $message_headers contains "bitch" or $header_from: contains "bitch"
or $header_subject: contains " **** " or $message_headers contains " **** " or $header_from: contains " **** "
or $header_subject: contains " whore " or $message_headers contains " whore " or $header_from: contains " whore "
or $header_subject: contains " sex " or $message_headers contains " sex " or $header_from: contains " sex "
or $header_subject: contains " sexy " or $message_headers contains " sexy " or $header_from: contains " sexy "
or $header_subject: contains " sexiest " or $message_headers contains " sexiest " or $header_from: contains " sexiest "
or $header_subject: contains " **** " or $message_headers contains " **** " or $header_from: contains " **** "
or $header_subject: contains " ****ty " or $message_headers contains " ****ty " or $header_from: contains " ****ty "
then
seen finish
endif




#end filter
 
Last edited:
A couple of times you said the filter was off and now you are showing us that it is on.

or $header_subject: contains "sex"

This will match every word that has "sex" in it.

essex
sussex
unisex
sextuplets
 
yes I've already tried to comment every line out but with no effect, this lines above, shows only how does my file looks like.
 
# Exim Filter

# created by DirectAdmin, version 1.35.1
# Do not modify this file as any changes will be
# overwritten when the user makes a change.

You should use DirectAdmin to delete these lines.
 
this lines?

# Exim Filter

# created by DirectAdmin, version 1.35.1
# Do not modify this file as any changes will be
# overwritten when the user makes a change.

how can I do this with DA?
 
Back
Top