So I finally got around to getting a web server stood up on VMware so that I can implement 'webmail' for my mail server. I'm using Postfix 2.7.1-2 and my servers are configured as follows:
mail = 192.168.0.200 / web = 192.168.0.201 / Now when my webmail service on the web server tries to send mail through my mail server, I get relay access denied: r...@www:# telnet mail.domain.tld 25 Trying 211.113.101.135... Connected to mail.domain.tld. Escape character is '^]'. 220 mail.domain.tld ESMTP Postfix EHLO www.domain.tld 250-mail.domain.tld 250-PIPELINING 250-SIZE 20480000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM:car...@domain.tld 250 2.1.0 Ok RCPT TO:some.em...@gmail.com 554 5.7.1 <some.em...@gmail.com>: Relay access denied quit 221 2.0.0 Bye Now obviously this made me realize that incoming connections from my web server to the mail server are not being properly resolved. Below is from my mail server: Dec 17 14:27:45 mail dovecot: imap-login: Login: user=<carlos>, method=PLAIN, rip=211.113.101.136, lip=192.168.0.200, mpid=8013, TLS Dec 17 14:27:45 mail dovecot: imap(carlos): Disconnected: Logged out bytes=94/885 I don't understand how or why my mail server identifies my web server as it's external static IP 'RIP" rather than the internal IP "RIP" which I've got listed in /etc/postfix/mynetworks. Anyone know how I can resolve this? Sorry if this isn't a specific Postfix issue and more of a DNS issue...