Gentoo Archives: gentoo-server

From: Ben Munat <bent@×××××.com>
To: gentoo-server@l.g.o
Subject: [gentoo-server] postfix problem
Date: Tue, 21 Nov 2006 06:16:09
Message-Id: 45629909.2040305@munat.com
1 Hello,
2
3 I'm working on my first postfix setup and I can't get it to relay mail
4 to an external domain. Any mails to local domains are handled just fine
5 and mailman seems to be sending mails to external domains. But trying to
6 send any outside mail gives me a "relay not permitted" error.
7
8 I've looked through the config files and done lots of googling...
9 everything seems right. Here's the relevant stuff from my main.cf:
10
11 smtpd_sasl_auth_enable = yes
12 smtpd_sasl_security_options = noanonymous
13 smtpd_sasl_local_domain = munat.com
14 broken_sasl_auth_clients = yes
15 smtpd_recipient_restrictions =
16 permit_sasl_authenticated,
17 permit_mynetworks,
18 check_relay_domains
19 smtpd_sender_restrictions =
20 permit_sasl_authenticated,
21 permit_mynetworks,
22 check_relay_domains
23
24 smtpd_use_tls = yes
25 smtpd_tls_auth_only = yes
26 smtpd_tls_key_file = /etc/postfix/newkey.pem
27 smtpd_tls_cert_file = /etc/postfix/newcert.pem
28 smtpd_tls_CAfile = /etc/postfix/demoCA/cacert.pem
29 smtpd_tls_loglevel = 3
30 smtpd_tls_received_header = yes
31 smtpd_tls_session_cache_timeout = 3600s
32 tls_random_source = dev:/dev/urandom
33
34 I get this in the logs:
35
36 Nov 20 21:40:45 munat postfix/smtpd[27832]: NOQUEUE: reject: RCPT from
37 home[72.130.214.34]: 554 <ben@×××××××××.com>: Recipient address
38 rejected: Relay access denied; from=<ben@×××××.com>
39 to=<ben@×××××××××.com> proto=ESMTP helo=<[192.168.0.102]>
40
41 Any help appreciated.
42
43 Ben
44
45
46
47
48 --
49 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] postfix problem Sune Kloppenborg Jeppesen <jaervosz@g.o>
Re: [gentoo-server] postfix problem "paul kölle" <pkoelle@×××××.com>