Difference between revisions of "Internal Configuring Postfix"
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 ...") |
|||
Line 9: | Line 9: | ||
## Change the ''relayhost'' directive to ''gcmmail.grandcare.com'' | ## Change the ''relayhost'' directive to ''gcmmail.grandcare.com'' | ||
## Restart postfix | ## Restart postfix | ||
## Test configuration | ## Test configuration | ||
# requires mailutils | |||
mailcmd=mail | mailcmd=mail | ||
echo "Hello World | 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> |
Revision as of 17:21, 3 May 2013
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 $IPAddress/32 to the mynetworks directive found in /etc/postfix/main.cf
- Restart postfix
- Login to your $server
- Change the relayhost directive to gcmmail.grandcare.com
- Restart postfix
- 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