hardware / mailserver

:warning: UNMAINTAINED - Simple and full-featured mail server using Docker
https://store.docker.com/community/images/hardware/mailserver
MIT License
1.29k stars 322 forks source link

Spam rejected #305

Closed cypriotxx closed 6 years ago

cypriotxx commented 6 years ago

docker info docker images hardware/mailserver --digests --filter "dangling=false" hardware/mailserver 1.1-stable sha256:b930736623fc35668a6ccd7d4e736c5826446c2683841351672f53752579e6e1 7a6cc949cfd7 3 months a

hardware commented 6 years ago

Increase rejection value in rspamd/local.d/actions.conf. Example : reject = 99;

If an email reaches the default rejection score (20), you can be sure he has nothing to do on your server, even in junk mailbox. There is no false positive at this level (with default metrics).

cypriotxx commented 6 years ago

so to confirm , if i changed that score to 99 all mails should get accepted and not left on cloud server ? i am a bit confused with your statement :D and thank you for taking the time to respond really appreciate what you do .

navossoc commented 6 years ago

@cypriotxx Yes, that is it.

You can also change this on the rspamd web interface.

image

cypriotxx commented 6 years ago

some of the logs showing this also Sender address rejected: Domain not found

would this be same settings or ?

navossoc commented 6 years ago

Have you registered your own domains on postfixadmin?

Please attach the log.

[]'s

cypriotxx commented 6 years ago

actually we set this server at the office to use it like this https://github.com/gw0/docker-dovecot-getmail

Couldnt use this one as there is no spam protection included so yours here is the best <3

in office we didnt register our own real domain just registered as officemails.net in postfixadmin and added our 4email address different domains in fetchmail settings to download our emails . and add our 4 different email address which different domains as identities in Roundcube , all fine now till here

now Roundcube giving error when trying to send FROM our domains because there is no sender dependent relay sasl etc settings are done yet,

the ideal solution is to use postfix's relay feature to add our domains with passwords for email accounts , to allow our 4 domain to send mails so it would work without an issue

not sure if sent mails would end up in spam not there yet so i dont know if we have to add SPF records etc because we are using officemails.net name ?

not sure how to go about this ... all mind blowing :D any advice will be appreciated

1n5aN1aC commented 6 years ago

@cypriotxx Yes, that is it.

You can also change this on the rspamd web interface.

I would like to add that when I changed the limits using this interface, I somehow got into a weird state where the web-interface settings were being ignored completely. Not only that, but the dev of rspamd more or less said to not use that to change the limits, at least not when you have 4 actions defined.

See this issue for more information: https://github.com/hardware/mailserver/issues/179

hardware commented 6 years ago

Sender address rejected: Domain not found

reject_unknown_sender_domain Reject the request when Postfix is not final destination for the sender address, and the MAIL FROM domain has 1) no DNS MX and no DNS A record, or 2) a malformed MX record such as a record with a zero-length MX hostname.

https://github.com/hardware/mailserver/blob/11f0ef63574ba06b685021137072a6e314486d21/rootfs/etc/postfix/main.cf#L155-L164

You have a DNS problem. Check MX record for that domain.

cypriotxx commented 6 years ago

That one worked , thank you :hardware

any idea for sender dependent relay sets for 4different domain ?

hardware commented 6 years ago

@cypriotxx this feature is currently not implemented https://github.com/hardware/mailserver/issues/237