× Post Fix is a great tool that comes usually bundled with vps servers and handles the mailboxes.

Configuring the postfix - Avoid unauthorized access

2 Χρόνια 5 Μήνες πριν #129 από infogate
First of all, we start at /etc/postfix/main.cf file and adding this:

# Sender restrictions:
smtpd_sender_restrictions =
    check_sender_access hash:/etc/postfix/access,

Here you got the explanations - www.postfix.org/postconf.5.html#smtpd_sender_restrictions

Then we need the access file, which should be at the postfix directory. (explanations -> www.postfix.org/access.5.html)
In this file, we start to list domains/mails/patterns and actions to take after postfix will read that. So, I just needed domains for now and it looks like this:
domain.com REJECT
domain1.com REJECT
domain2.com REJECT

After that we need to postmap the file access, so run:
postmap hash:/etc/postfix/access

After all, restart postfix:

service postfix restart

To check if domain is blocked, you can create domain block for your private mail (for ex. gmail.com, yahoo.com, etc.) and see the action in /var/log/maillog
tail /var/log/maillog
There should be: [...] Sender address rejected: Access denied; [...]

Follow us at You Tube --> www.youtube.com/@freespiritsgr
Follow us at Facebook --> www.facebook.com/freespirits.gr
If you found the above article useful we would appreciate it if you would rate us by clicking here --> g.page/r/CeAOj46Cf2epEB0/review
If you are interested in receiving a financial offer for website design click --> freespirits.gr/web-design
If you already have a website and want a free speed and SEO check click here --> fspirits.com/contact-us/
If you need affordable, fast hosting with, free of charge transfer from old host, click here --> freespirits.gr/hosting

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.080 δευτερόλεπτα
Powered by Kunena Φόρουμ