Jump to content

Relay Access Denied


Guest zgoume
 Share

Recommended Posts

Guest zgoume

Sorry to disturb you again... lol, but now that postfix seems to work better, i got a problem sending mail outside my local network. Does anybody know what should i do to enable "outLAN" mails?

 

:wall::wall::wall::wall:

 

The wall will break before my head :)

 

Hope i'll get answer soon, thanx to you all

 

:thanks:

Link to comment
Share on other sites

that is because if you can send mail from outside your network, you will become an open relay server, and spammers will be the first one to use you to spread their spam. POstfix by default install, is already secured as to be not an open relay. You should enable smtp-auth to be able to relay mail outside your network. Refer to postfix documentation about it

Link to comment
Share on other sites

Guest zgoume

i installed sasl on postfix, but how can i configure sasl to read password from the authpwd file like imap does for logging in?

Edited by zgoume
Link to comment
Share on other sites

try to insert the config below in your /etc/postfix/main.cf file

########################################

smtpd_sasl_auth_enable = yes

smtpd_sasl2_auth_enable = yes

smtpd_sasl_security_options =noanonymous

broken_sasl_auth_clients = yes

smtpd_sasl_local_domain =$myhostname

smtpd_recipient_restrictions =

permit_sasl_authenticated

permit_mynetworks

reject_unauth_destination

########################################

and also, make sure that you started saslauthd service everytime your box start

or start it manually, as root #/etc/init.d/saslauthd start

 

also, check what is the content of your /usr/lib/sasl/smtpd.conf and /usr/lib/sasl2/smtpd.conf

you can put at pwcheck_method =

saslauthd or you can put pam

Link to comment
Share on other sites

  • 3 months later...
Guest mighty_falcon

i have run into the same problem as the user above :(

 

i tried everything but without much luck

 

there is not much showing up on /var/log/mail just the fact that is not queuing the mail because of relay access denied :S

 

smtpd_sasl_local_domain =

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =  permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

mydomain = betalabs.org

myhostname = $mydomain

mydestination =

smtpd_tls_auth_only = yes

smtp_use_tls = yes

smtpd_use_tls = yes

smtp_tls_note_starttls_offer = yes

smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key

smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt

smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_loglevel = 1

smtpd_tls_received_header = yes

smtpd_tls_session_cache_timeout = 3600s

tls_random_source = dev:/dev/urandom

mydestnation =

 

i have tried everything but msgs are still bounced back with the relay access denied message

 

any help is greately appreciated tnx!

Link to comment
Share on other sites

Guest mighty_falcon

i seem to have gotten around the reay acces denied problem but now get this in the postfix logs:

 

Unable to locate maildrop for ***: Mailbox does not exist

 

mail is actually being delivered as i can see the msgs under

 

/var/spool/mail/*****

 

im new to linux so that is why i am a bit lost atm, did i miss something in the main.cf file about maildrop dir or?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...