View previous topic :: View next topic |
Author |
Message |
iloose2 Tux's lil' helper
Joined: 16 Jul 2002 Posts: 89 Location: Minnesota
|
Posted: Wed Oct 23, 2002 10:01 pm Post subject: Postfix relaying |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 24, 2002 5:36 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 24, 2002 5:37 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 24, 2002 5:37 am Post subject: |
|
|
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 |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Thu Oct 24, 2002 5:49 am Post subject: |
|
|
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 |
|
Back to top |
|
|
iloose2 Tux's lil' helper
Joined: 16 Jul 2002 Posts: 89 Location: Minnesota
|
Posted: Thu Oct 24, 2002 6:02 am Post subject: |
|
|
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 |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 24, 2002 9:33 am Post subject: |
|
|
aardvark wrote: |
You're a smart guru, making sure your messages get read enough |
sorry, gentoo forum was messed up, got some weired error about not being able to send email ... |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Thu Oct 24, 2002 9:37 am Post subject: |
|
|
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 |
|
|
iloose2 Tux's lil' helper
Joined: 16 Jul 2002 Posts: 89 Location: Minnesota
|
Posted: Fri Oct 25, 2002 8:04 am Post subject: |
|
|
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 |
|
|
|