Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th January 2010, 15:00
repa2 repa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default POstfix Gateway: Sender address rejected: Doman not found

Hi,

i installed my system with the following howto:
http://www.howtoforge.com/the-perfec...ubuntu-8.04-p5

i have some exchange servers behind the Postfix mailgateway and i told the exchange to sender over the postfix.

incoming is working, example.com is routed from postfix to the exchange

if i want to send the mails out, i receive the following error from postfix:

450 4.1.8 (mail addrss): Sender addresse rejected: Domain not found

So What?

My Network in main.cf is 192.168.100.0/24 and exchange server has .20

on relay host i have .20 entered in the main.cf

what's the problen here?
Reply With Quote
Sponsored Links
  #2  
Old 14th January 2010, 10:42
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

The domain you are sending from is not being resolved by postfix that is the problem, fix that by adding resolution for that name.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 14th January 2010, 11:00
repa2 repa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

where should i do that?

imcoming on this domain is no problem, but where should i configure the domain for outgoing permission ?
Reply With Quote
  #4  
Old 14th January 2010, 11:02
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Is the domain outbound the same as the domain inbound ? can you provide the error log indicating the actual error.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 14th January 2010, 11:29
repa2 repa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes it's the same domain

error:
450 4.1.8 (mail addrss): Sender addresse rejected: Domain not found
Reply With Quote
  #6  
Old 14th January 2010, 11:34
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

That is not the full error how are we supposed to help u if you do not want to provide info.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 14th January 2010, 11:43
repa2 repa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is the full error:

Jan 13 14:51:03 mx01 postfix/smtpd[9716]: connect from unknown[x.x.x.x]
Jan 13 14:51:04 mx01 postfix/smtpd[9716]: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.1.8 <info@x.net>: Sender address rejected: Domain not found; from=<info@x.net> to=<repa@example.com> proto=ESMTP helo=<cas.xxx.com>
Jan 13 14:51:04 mx01 postfix/smtpd[9716]: disconnect from unknown[x.x.x.x]
Reply With Quote
  #8  
Old 14th January 2010, 11:46
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

post your main.cf, i suspect it is one of your configurations in smtpd_recipient_restrictions
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #9  
Old 14th January 2010, 11:49
repa2 repa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

main.cf

Quote:
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
local_recipient_maps =
local_transport = error:No local mail delivery
message_size_limit = 104857600
mydestination =
myhostname = mx02.xxx.com
mynetworks = x.x.x.x/24
myorigin = xxx.com
readme_directory = no
relay_domains = hash:/etc/postfix/relay_domains
relay_recipient_maps = hash:/etc/postfix/relay_recipients
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_rbl_client zen.spamhaus.org
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual

relay-domains:

x.net OK

relay_recipients:

@x.net OK

transport:

x.net smtp:[x.x.x.x]
Reply With Quote
  #10  
Old 14th January 2010, 12:03
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

Code:
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
The issue is being cause by http://www.postfix.org/postconf.5.ht..._sender_domain

Can you check that your postfix server is capable of resolving the MX or A records for x.net
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 18:10
Sender Address Rewriting In Postfix! ojha_riddhish Server Operation 0 8th January 2010 13:04
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
help on /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl zimele General 13 23rd August 2006 16:06
Having Problems with KWiFiManager sbovisjb1 Installation/Configuration 7 17th April 2006 22:53


All times are GMT +2. The time now is 09:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.