| Linode Forum https://forum.linode.com/ |
|
| Postfix Relay with mynetworks -- not working https://forum.linode.com/viewtopic.php?f=11&t=9545 |
Page 1 of 1 |
| Author: | CricketAlley [ Mon Nov 12, 2012 3:52 pm ] |
| Post subject: | Postfix Relay with mynetworks -- not working |
I'm trying to setup postfix to allow relaying from two specific IP addresses -- office and home. It works with the first IP address (office), but not from home. I'm stumped. I have this set: mynetworks = 127.0.0.0/8 24.12.24.23 24.12.22.17 The IP in green works just fine. It is my office. The one in red doesn't work. Can anyone help me with what I might be missing? |
|
| Author: | staticsafe [ Mon Nov 12, 2012 3:58 pm ] |
| Post subject: | Re: Postfix Relay with mynetworks -- not working |
CricketAlley wrote: I'm trying to setup postfix to allow relaying from two specific IP addresses -- office and home. It works with the first IP address (office), but not from home. I'm stumped. I have this set: mynetworks = 127.0.0.0/8 24.12.24.23 24.12.22.17 The IP in green works just fine. It is my office. The one in red doesn't work. Can anyone help me with what I might be missing? What error message do you get in /var/log/mail.log or wherever you are logging mail? Also, post the output of `postconf -n`. |
|
| Author: | CricketAlley [ Mon Nov 12, 2012 8:51 pm ] |
| Post subject: | Re: Postfix Relay with mynetworks -- not working |
Thank you for your help. The error I'm getting now on my laptop at home is: "Can not connect to SMTP server." I can take this same laptop, without changing anything, and it works fine at the office. There isn't a record in the mail log because it isn't connecting. I'm stumped on that. Here is the postconf - n. Thanks much. alias_maps = hash:/etc/aliases config_directory = /etc/postfix debug_peer_level = 2 default_destination_concurrency_limit = 5 default_destination_recipient_limit = 10 home_mailbox = Maildir/ html_directory = no mailbox_size_limit = 256000000 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man maximal_queue_lifetime = 2d mydestination = hash:/etc/postfix/mydomains mynetworks = 127.0.0.0/8 24.12.24.23 24.12.22.17 newaliases_path = /usr/bin/newaliases.postfix queue_run_delay = 10000s readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_sasl_security_options = noplaintext smtpd_banner = $myhostname ESMTP $mail_name smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, reject_invalid_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_destination, reject_unknown_recipient_domain, reject_non_fqdn_recipient smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_timeout = 5 unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual |
|
| Author: | sweh [ Mon Nov 12, 2012 9:27 pm ] |
| Post subject: | Re: Postfix Relay with mynetworks -- not working |
CricketAlley wrote: Thank you for your help. The error I'm getting now on my laptop at home is: "Can not connect to SMTP server." I can take this same laptop, without changing anything, and it works fine at the office. Is your home ISP blocking SMTP traffic? A large number do, these days, to stop spam (use their relay or else). Does your linode have a firewall so only specific IP addresses can connect? From your laptop at home, what is the result of "telnet your-inode 25" ? What about "telnet your-inode 587" ? It's possible you could run an authenticating SMTP server on the SMTP-submission port (587) if your ISP is blocking port 25. |
|
| Author: | CricketAlley [ Tue Nov 13, 2012 12:09 am ] |
| Post subject: | Re: Postfix Relay with mynetworks -- not working |
Hey, thanks much! It was so easy. I just tested port 25, and yes, it is being blocked by my ISP. So, I just changed postfix to another port for SMTP and viola..... workslike a charm. Thank you much. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|