Author Topic: mail problems  (Read 1751 times)

bista

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
mail problems
« on: July 31, 2017, 10:17:47 am »
Hi,
I have zentyal 4.0 as webmail server. This server has 2 interfaces, one in our LAN et the second one is external and has internet access. Since some days i'm unable to send or receive some mails. For sending mail i always have these errors below:

This is the mail system at host nocibemail.nouvellecimenteriedubenin.com.

<<
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<tatianasounou@gmail.com>: host 127.0.0.1[127.0.0.1] said: 554 5.7.0 Reject,
    id=30053-03 - spam (in reply to end of DATA command)

<guest@nouvellecimenteriedubenin.com>: host 127.0.0.1[127.0.0.1] said: 554
    5.7.0 Reject, id=30053-03 - spam (in reply to end of DATA command)
>>

When people send mail to our address mail we don't either receive i or has the same error.
Please help, i don't know what to do and where to search for the problems.

Jormungandr

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: mail problems
« Reply #1 on: August 16, 2017, 06:41:46 pm »
Hi there. It looks like you're rejecting your own messages as spam. That may be half your issue anyway.
If you're using a stub for your antispam add
Code: [Select]
score ALL_TRUSTED -100 -100 -100 -100somewhere in the local.cf.mas file (if you're not using a stub file you'll have to create one. To do that type 
Code: [Select]
mkdir -p /etc/zentyal/stubs/mailfilter && cp -n /usr/share/zentyal/stubs/mailfilter/local.cf.mas /etc/zentyal/stubs/mailfilter/local.cf.mas  That command will create the directory structure for the stubs if it doesn't exist and copy the stub file if it doesn't exist.)
What that score does is add a -100 score to every message that originates in a trusted network. That way you won't block your own stuff. At least this solved this issue for me.