Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postfix + subnet

Status
Not open for further replies.

chindoko

IS-IT--Management
Oct 29, 2010
2
DK
Hej
I have currently have my mailserver and it was on a /24 subnet lets say 210.210.210.210/24 for the sake of it.

We are currently changing our ISP and our company now has only one ip adresse, lets say 95.95.95.95/255.255.255.224, which i believe is a /27 subnet. when sending mails from within the organisation i forward my mails from my 192.168.0.0 network through my 95. gateway to my 210 mailserver on my old ISPs network, i receive an error (can´t tell you what it says as i am not currently at work), but the error has to do with letting the 95. network relay its mail through the 210 server.

i have in my postfix main.cf file altered the already existant lines mynetworks and permit_mynetworks :
i have stated the ip adresse given to us and the subnet as 95.95.95.95/27 we only have that one ip adresse

mynetworks = 95.95.95.95/27, 210.210.210.0/24, 127.0.0.0/8
#content_filter = smtpd:127.0.0.1:10024
content_filter = smtp-amavis:127.0.0.1:10024
policy_time_limit = 3600
owner_request_special = no
empty_address_recipient = MAILER-DAEMON
queue_minfree = 40000000
message_size_limit = 20000000
mailbox_size_limit = 100000000

permit_mynetworks = 95.95.95.95/27, 210.210.210.0/24, 127.0.0.0/8, 127.0.0.1

When i try to send a mail, it is not relayed and i am given an error in the mail log that 95.95.95.95/27 is unknown and at the user end the mail is rejected

Any help would be much appreciated

Thanks

Peter
 
Hmm...try commenting out the permit_mynetworks line and see what that does. I don't have such an entry in my postfix config and it rejects SMTP connections nicely from foreign networks.
 
Have now commented the
permit_mynetworks = 95.95.95.95/27, 210.210.210.0/24, 127.0.0.0/8, 127.0.0.1
out and it still does not seem to allow my mail to pass through

Does it have anything to do with the ip adress 95.95.95.95 255.255.255.224 is it in short 95.95.95.95/27?
 
You know, I believe 95.95.95.95 is a broadcast address for the 95.95.95.64/27 subnet. So I don't think that IP configuration is valid for a host.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top