From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PljJb-0005HK-E2 for garchives@archives.gentoo.org; Sat, 05 Feb 2011 14:40:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D0EFE006E; Sat, 5 Feb 2011 14:38:50 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 5FA15E006E for ; Sat, 5 Feb 2011 14:38:50 +0000 (UTC) Received: from [192.168.2.43] (p5791065C.dip.t-dialin.net [87.145.6.92]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id 516BF39A018 for ; Sat, 5 Feb 2011 15:38:49 +0100 (CET) Message-ID: <4D4D60BC.4050702@wonkology.org> Date: Sat, 05 Feb 2011 15:37:48 +0100 From: Alex Schuster User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Setting up SMTP relay References: <4D3B4D53.7000209@wonkology.org> <4D3B53AC.904@badapple.net> <4D3C8041.2070105@wonkology.org> In-Reply-To: <4D3C8041.2070105@wonkology.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 3da4c96ff5e1c066fcea7a5decd00ba7 I wrote: In case someone else also wants to setup this, here's the final steps to make relaying work. > Relaying does not work yet, I get a "Relay access denied (in reply to > RCPT TO command)" error. But my initial goal is reached, I can send mail > to {root,wonko}@wonkology.org. That's all I wanted. > > Many many thanks kashani! Your howto is much more than I expected, it is > much appreciated. I realize that postfix is not too complicated, so I > will play more with it when I have some spare time. Yesterday I had some. It took me a while to figure out what was wrong. I read many howtos, but they all did not explain in detail how to authenticate with another SMTP server, so postfix would act as a client. It turned out that the error was simple: I had to change smtp_sasl_tls_security_level = may to smtp_tls_security_level = may . So, my relay config part of main.cf is this: relayhost = [my.external.relay.host] smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpass smtp_sasl_security_options = noanonymous smtp_tls_security_level = may smtp_tls_cert_file = /etc/ssl/postfix/weird.pem And I had to create the (self-signed) certificate. It's done like this: openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout /etc/ssl/postfix/weird.pem I was told I had to set my name to my hostname, not sure if this is true. Done. My host now acts as SMPT server, accepting connections without password from the LAN. Now I can enable mail sending for the other Gentoo systems here in make.conf. And in ssmtp.conf, so things like cron can send status mails to me. Thanks again Kashani, without you help I would not have tried this. Wonko