LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2019, 02:59 AM   #1
jessie1
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Rep: Reputation: Disabled
Postfix Mail Server Configuration.


Hello everyone!

Please I need help with configuring my postfix mail server to send and receive emails over the internet and or intranet.

system information:
OS: oracle Linux 8.0
machine: Esxi 6.5 VMware

I want to be able to send and receive emails to and from my work mail address.
I am guessing that I need to edit the "relayhost" option in the Main.cf file but I don't know how.

Thank you in advance!
 
Old 09-20-2019, 07:12 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,964

Rep: Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828Reputation: 5828
Quote:
Originally Posted by jessie1 View Post
Hello everyone!
Please I need help with configuring my postfix mail server to send and receive emails over the internet and or intranet.

system information:
OS: oracle Linux 8.0
machine: Esxi 6.5 VMware

I want to be able to send and receive emails to and from my work mail address. I am guessing that I need to edit the "relayhost" option in the Main.cf file but I don't know how.
Read the "Question Guidelines" link in my posting signature; there are a LOT of how-to guides on configuring postfix and setting up a relay host that you can find with a simple search. Putting "configure postfix" into Google pulls up, as the very first hit:
https://www.linode.com/docs/email/po...-smtp-debian7/

...step by step directions on how to configure things, along with many others. That said, if you're planning on using this at work, you need to talk with your network admins, since allowing mail through firewalls is often HIGHLY restricted, for good reason. And you're using VMware ESXi with OEL 8....both are commercial, pay-for products; have you called Oracle support for assistance, or looked in their knowledgebase?
 
Old 09-21-2019, 09:44 AM   #3
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
You can do it using the following:

1. Postfix
3. courier-authlib (user authentication via MariaDB/MySQL)
2. Courier-imap (imap, pop3)
3. maildrop (local mail delivery to user inboxes)
4. amavisd-new content filtering by calling on the services of spamassassin and clamav

In Ubuntu/Debian, the packages are (So adjust this to your distro):

postfix, postifx-mysql, postfix-pcre, courier-authdaemon, courier-authlib, courier-pop, courier-imap, courier-imap-ssl, courier-pop-ssl, courier-authlib-mysql, courier-maildrop, libsasl2-2, libsasl2-modules, libsasl2-modules-sql, amavisd-new

You can refer to postfixvirtual.net to guide you configure postfix, courier and amavis, including mysql schema for the users back-end. This howto is no longer updated for a long time, but this can still be of help.

In /etc/postfix/main.cf, to secure your server from client access and to minimize spam, use this as minimum for smtpd_recipient_restrictions:

Code:
smtpd_recipient_restrictions =
        permit_mynetworks
        permit_sasl_authenticated
        reject_unknown_sender_domain
        reject_unknown_recipient_domain
        reject_non_fqdn_recipient
        reject_non_fqdn_sender
        reject_multi_recipient_bounce
        reject_unauth_destination
        reject_unauth_pipelining
        reject_rbl_client all.spamrats.com=127.0.0.36
        reject_rbl_client all.spmarats.com=127.0.0.38
        reject_rbl_client spam.spamrats.com
        reject_rbl_client bl.spamcop.net
        reject_rbl_client zen.spamhaus.org
        reject_rbl_client safe.dnsbl.sorbs.net
        reject_rbl_client cbl.abuseat.org
        reject_rbl_client dnsbl.sorbs.net
        reject_rbl_client rhsbl.sorbs.net
        check_policy_service inet:127.0.0.1:10023 #if postgrey was installed, uncomment or remove if not using postgrey
        permit
Adding DKIM signing and verification, including SPF is now a must. You can add this later. There are good tutorials out there. Another spam mitigation technique that can be added later is postscreen - http://www.postfix.org/POSTSCREEN_README.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetchmail Mail Configuration And Postfix Configuration Senthilv Linux - Server 1 01-06-2011 01:47 AM
LXer: Postfix Backup Mail Server Anti-Spam / Anti-Virus Configuration LXer Syndicated Linux News 0 05-05-2009 02:00 PM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
LXer: Linux Postfix mail server SSL certificate installations and configuration LXer Syndicated Linux News 0 07-13-2007 10:01 AM
postfix mail to postfix +mysql mail btaylor1988 Linux - Server 0 05-29-2007 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration