Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix relaying
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iloose2
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2002
Posts: 89
Location: Minnesota

PostPosted: Wed Oct 23, 2002 10:01 pm    Post subject: Postfix relaying Reply with quote

I have complied postfix with SASL, everything works fine until I attempt to send a message to a different domain. The error is "relay access denied", How do I allow postfix to relay to any domain, from users that are SASL verified?
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 24, 2002 5:36 am    Post subject: Reply with quote

put something like this in your main.cf

Code:

pwcheck_method: = saslauthd
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated check_relay_domains
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 24, 2002 5:37 am    Post subject: Reply with quote

put something like this in your main.cf

Code:

pwcheck_method: = saslauthd
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated check_relay_domains
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 24, 2002 5:37 am    Post subject: Reply with quote

put something like this in your main.cf

Code:

pwcheck_method: = saslauthd
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated check_relay_domains
Back to top
View user's profile Send private message
aardvark
Guru
Guru


Joined: 30 Jun 2002
Posts: 576

PostPosted: Thu Oct 24, 2002 5:49 am    Post subject: Reply with quote

mglauche wrote:
put something like this in your main.cf

Code:

pwcheck_method: = saslauthd
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated check_relay_domains


You're a smart guru, making sure your messages get read enough :twisted:
Back to top
View user's profile Send private message
iloose2
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2002
Posts: 89
Location: Minnesota

PostPosted: Thu Oct 24, 2002 6:02 am    Post subject: Reply with quote

It still fails, here is the log:
Code:
Oct 23 22:58:33 [imapd-ssl] Connection, ip=[x.x.x.x]
Oct 23 22:58:33 [imapd-ssl] LOGIN, user=username, ip=[x.x.x.x]
Oct 23 22:58:34 [imapd-ssl] Connection, ip=[x.x.x.x]
Oct 23 22:58:34 [imapd-ssl] LOGIN, user=username, ip=[x.x.x.x]
Oct 23 22:59:05 [postfix/smtpd] warning: x.x.x.x: address not listed for hostname ip-xx-cityname-xx-xx-xx-xx.ispnamehere.com
Oct 23 22:59:05 [postfix/smtpd] connect from unknown[x.x.x.x]
Oct 23 22:59:05 [postfix/smtpd] CA7F43F2A: client=unknown[x.x.x.x]
Oct 23 22:59:05 [postfix/smtpd] reject: RCPT from unknown[x.x.x.x]: 554 <usernamehere@yahoo.com>: Recipient address rejected: Relay access denied
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 24, 2002 9:33 am    Post subject: Reply with quote

aardvark wrote:


You're a smart guru, making sure your messages get read enough :twisted:


sorry, gentoo forum was messed up, got some weired error about not being able to send email ...
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Thu Oct 24, 2002 9:37 am    Post subject: Reply with quote

back to original topic:

are you sure your client is authenticating ? I think there should be some sasl/login infomation in the logfile when you use authentication. Also check the other logs for sasl errors.

One thing that could be happen if u use sasl and smptd in chroot() mode that sasl can't find the sasdb or the socket file for saslauthd. In this case check the postfix chroot dir, the ../var/.. inside it, and make a hard link from the original socket/sasldb to the corresponding locations
Back to top
View user's profile Send private message
iloose2
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2002
Posts: 89
Location: Minnesota

PostPosted: Fri Oct 25, 2002 8:04 am    Post subject: Reply with quote

Code:

Oct 25 01:08:07 [postfix/smtpd] connect from unknown[x.x.x.x]
Oct 25 01:08:07 [PAM_pwdb] check pass; user unknown
Oct 25 01:08:08 [saslauthd] AUTHFAIL: user=user@domain.com service=smtp realm=domain.com [PAM auth error]
Oct 25 01:08:08 [postfix/smtpd] warning: unknown[x.x.x.x]: SASL LOGIN authentication failed
Oct 25 01:08:09 [postfix/smtpd] disconnect from unknown[x.x.x.x]



main.cf :
Code:

pwcheck_method: = saslauthd
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, ch$
smtpd_sasl_security_options = noanonymous
# client
smtp_sasl_auth_enable = yes


smtpd.conf:
Code:

pwcheck_method:saslauthd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum