Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 12, 2012 3:52 pm 
Offline
Newbie

Joined: Mon Nov 12, 2012 3:49 pm
Posts: 3
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?


Top
   
PostPosted: Mon Nov 12, 2012 3:58 pm 
Offline
Senior Newbie

Joined: Wed Feb 22, 2012 12:04 pm
Posts: 6
Website: http://asininetech.com
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`.


Top
   
PostPosted: Mon Nov 12, 2012 8:51 pm 
Offline
Newbie

Joined: Mon Nov 12, 2012 3:49 pm
Posts: 3
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


Top
   
PostPosted: Mon Nov 12, 2012 9:27 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
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.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Tue Nov 13, 2012 12:09 am 
Offline
Newbie

Joined: Mon Nov 12, 2012 3:49 pm
Posts: 3
Hey, thanks much!

It was so easy. :D

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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group