I have a dedicated web server on the local network (tigger.mydomain.com) and a dedicated email server (pooh.mydomain.com).
The mail server works fine (thanks to ExRatione, and Flurdy).
However, I want the web server to be able to send its logwatch files to my address on the mail server.
I also want the Drupal installation to be able to send out the occasional email ("you lost your password? click this link to reset it" etc).
Per the "Postfix on a null client" configuration setup (the web server should never receive mail, only send it), this is my /etc/postfix/main.cf file:
* the domain in question has a real, authoritative DNS entry with securityspace.com.myhostname = tigger.mydomain.com*
myorigin = mydomain.com
relayhost = mail.mydomain.com
#mynetworks = 127.0.0.0/8 192.168.49.0/30** [::1]/128 [fe80::%eth0]/64
#mailbox_size_limit = 51200000
#recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = ipv4
** the dedicated web server is hanging off a pfSense firewall, on its own DMZ (as is the mail server), and I've configured (and tested) the rules to allow ports 25, 53, 465, 587 to pass from the web server to the mail server (until I get this thing ironed out, and get the configuration right).
Unfortunately, I keep getting denied
When I attempted a telnet mail.mydomain.com 587, I got this from the syslog of the mail server:
And the feedback from the telnet screen saidOct 26 11:13:38 pooh postfix/submission/smtpd: NOQUEUE: reject: RCPT from tigger.mydomain.com[192.168.49.2]: 554 5.7.1 <tigger.jonesfamily.us[192.168.49.2]>: Client host rejected: Access denied; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<mail.mydomain.com>
Which would seem to indicate a problem with the mail server's main.cf file.554 5.7.1 <tigger.mydomain.com[192.168.49.2]>: Client host rejected: Access denied
the first entry after smtpd_client_restrictions, smtpd_helo_restrictions, smtpd_sender_restrictions, and smtpd_recipient_restrications, is "permit_mynetworks" Which is identified as
mynetworks = 192.168.29.0/24 192.168.39.0/30 18.104.22.168/30 127.0.0.0/8
(where 192.168.39.0/30 and 192.168.49.0/30 are the mail and web DMZ's respectively).
As if that weren't enough to stump me... when I telnet to mail.mydomain.com 25 it works just fine. (but when I change the relayhost variable in /etc/postfix/main.cf to [mail.mydomain.com]:25 and try to run the command "logwatch," I get nothin... not even a blip in the syslog tail.
Can someone point me to something that documents a simple solution..."Romper Room style"...?