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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

relay from non-local domains is not allowed

Status
Not open for further replies.

martincab

Programmer
May 12, 2003
39
US
I get postfix working fine to send mails from a client (ximian) running on the same server (redhat 9), however when i tried to send messages from any pc from same network, i get the message: "relay from non-local domains is not allowed".

i will thank any tip.

Martin.

My current configuration looks like:

#postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 6
debug_peer_list = 192.168.20.106
inet_interfaces = all
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname
myhostname = venus.activos.com.co
mynetworks = 192.168.0.0/24
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-1.1.12/README_FILES
sample_directory = /usr/share/doc/postfix-1.1.12/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop

#ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:C7:4B:8C:60
inet addr:192.168.20.126 Bcast:192.168.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24403 errors:0 dropped:0 overruns:0 frame:0
TX packets:1327 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2710586 (2.5 Mb) TX bytes:112566 (109.9 Kb)
Interrupt:10 Base address:0xec00 Memory:df8ff000-df8ff038

eth1 Link encap:Ethernet HWaddr 00:30:1B:35:10:49
inet addr:192.168.20.127 Bcast:192.168.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24532 errors:0 dropped:0 overruns:0 frame:0
TX packets:356 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2941579 (2.8 Mb) TX bytes:31793 (31.0 Kb)
Interrupt:11 Base address:0xd400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:111507 errors:0 dropped:0 overruns:0 frame:0
TX packets:111507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9192515 (8.7 Mb) TX bytes:9192515 (8.7 Mb)



Martin Cabrera
Oracle DBA/Programmer
 

Hi,
your 'mynetworks' address doesn't match your adapters networks. It should be

mynetworks=192.168.20.0/24

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Thanks Henrik, You're right: my_networks parameter was wrong.

Aside from this I had another problem: I was using the mozilla mail client and this allows to configure only one smtp server for all accounts. I have accounts from domains (aaa.com and bbb.com) each one with different mail servers, it was necessary to configure the postfix parameter:
relay_domains = aaa.com, bbb.com
in order to allow send mail from accounts from both domains.

My postfix server is working fine now.

Thanks.

Martin Cabrera
Oracle DBA/Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top