Postfix getting spam to system users

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Postfix getting spam to system users

Postby pernel » Dec 2nd, '24, 13:00

I have a postfix + dovecot mail server with only one normal user. However i found that the postfix server receives spam mail to system users and creates mailboxes in "/var/spool/mail" for example for system users adm, apache, clamav, mysql, postgres and mail. I have a feeling that this makes my system more vulnerable. I tested this by sending email from my gmail to adm@myserver.se and it lands in the corresponding mailbox.
I tried to understand how to setup postfix so that it will recieve only mail to the one and only one "normal" user and reject or block mail to any of the system users from remote hosts.
Would appreciate any help.
Per
pernel
 
Posts: 66
Joined: Mar 21st, '12, 20:13

Re: Postfix getting spam to system users

Postby doktor5000 » Dec 3rd, '24, 00:59

Hi there, you should probably check the postfix documentation for that as that is not really a Mageia-specific question.

See e.g. https://unix.stackexchange.com/question ... nding-mail or https://dan.langille.org/2019/01/25/usi ... recipient/ or https://www.cyberciti.biz/faq/howto-bla ... l-address/
and maybe https://www.postfix.org/RESTRICTION_CLASS_README.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18053
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest