What default minimal configuration can be done on postfix, check it out below:
Configure in DNS server/provider
mail.sa-bagus.com A record to IP Server
Priority MX to mail.sa-bagus.com
Install
apt-get install postfix
example choose:
internet site: sa-bagus.com
Configure postfix
dpkg-reconfigure postfix
Choose accordingly to your needs like network, limit, and domain.
restart postfix service
now by default inbox will be in /var/mail/ and it is already connected with Linux local account
example adduser emailuser1.
now if example, your Gmail account sends an email to @sa-bagus.com , the email message will be stored default in the /var/mail/
You have default SMTP on port 25, but some cloud providers will block traffic 25 so consider making advanced configuration like SMTPS 465 or 587.
That's.
now even with the default config if your local/cloud server is connected to the internet, it can send and receive email to the public email like Gmail, but maybe if you send the bulk email will mark it as spam, you need an advanced configuration like DKIM, SPX, etc.
Comments
Post a Comment