Difference between revisions of "Internal Configuring Postfix"

From GrandCare Systems
Jump to navigation Jump to search
(Created page with "All servers deliver mail through '''gcmmail.grandcare.com'''. Gather the public IP address of the server you're configuring mail on. # Login to gcmmail.grandcare.com ## Add ...")
 
m (Eumhoefer moved page Configuring Postfix to Internal Configuring Postfix: Internal Page)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
All servers deliver mail through '''gcmmail.grandcare.com'''.
All servers deliver mail through '''gcmmail.grandcare.com'''.
note: it's easiest to choose Satellite when prompted during apt install


Gather the public IP address of the server you're configuring mail on.
Gather the public IP address of the server you're configuring mail on.
Line 9: Line 10:
## Change the ''relayhost'' directive to ''gcmmail.grandcare.com''
## Change the ''relayhost'' directive to ''gcmmail.grandcare.com''
## Restart postfix
## Restart postfix
## Test configuration with:
## Test configuration
# requires mailutils
  mailcmd=mail
  mailcmd=mail
  echo "Hello World!" | $mailcmd -s 'test' my@emailaddress.tld
  echo "Hello World" | $mailcmd -s 'test' my@emailaddress.tld
 
<small>note: you can just use mail instead of $mailcmd, I had to do this to get around mod_security on this webserver</small>
<small>note: you can just use mail instead of $mailcmd, I had to do this to get around mod_security on this webserver</small>

Latest revision as of 17:04, 10 July 2017

All servers deliver mail through gcmmail.grandcare.com.

note: it's easiest to choose Satellite when prompted during apt install

Gather the public IP address of the server you're configuring mail on.

  1. Login to gcmmail.grandcare.com
    1. Add $IPAddress/32 to the mynetworks directive found in /etc/postfix/main.cf
    2. Restart postfix
  2. Login to your $server
    1. Change the relayhost directive to gcmmail.grandcare.com
    2. Restart postfix
    3. Test configuration
# requires mailutils

mailcmd=mail
echo "Hello World" | $mailcmd -s 'test' my@emailaddress.tld

note: you can just use mail instead of $mailcmd, I had to do this to get around mod_security on this webserver