Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix & sasl problem [solved]
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
Thesee
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2004
Posts: 138
Location: Belgium

PostPosted: Mon Apr 04, 2005 6:02 pm    Post subject: Postfix & sasl problem [solved] Reply with quote

Hi,

I have a Gmail account and i use the POP access to retrieve my mails. However, as a mutt adicted :oops:, i'd like also to send my mails from my host.

I set up a postfix and cyrus-sasl installation (as exposed in this post: https://forums.gentoo.org/viewtopic-t-56633-highlight-postfix.html). When i send a mail, here is the error i have in the /var/log/messages:
Code:
Apr  2 23:43:53 Phoebe postfix/smtp[9839]: 7EF553C6696:
to=<gregory.sacre@gmail.com>, relay=smtp.gmail.com[64.233.171.109],
delay=3909, status=bounced (host smtp.gmail.com[64.233.171.109] said:
530 5.7.0 Must issue a STARTTLS command first (in reply to MAIL FROM
command))


Here is the output of postconf -n:
Code:
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
home_mailbox = .maildir/
html_directory = no
local_destination_concurrency_limit = 2
mail_owner = postfix
mailbox_command = /usr/bin/procmail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = thesee.dyndns.org
myhostname = Phoebe.thesee.dyndns.org
mynetworks = 127.0.0.0/8 192.168.0.0/24
mynetworks_style = host
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
relayhost = [smtp.gmail.com]:587
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_security_options = noanonymous
smtpd_client_restrictions = permit_sasl_authenticated, reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450


I don't know what i'm doing wrong. Can you help me?


Last edited by Thesee on Mon Apr 04, 2005 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
acasto
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 236
Location: Durka-Durka-Stan

PostPosted: Mon Apr 04, 2005 6:06 pm    Post subject: Reply with quote

I think you just have to authenticate against their SMTP server. I haven't set it up before, but check here:

http://postfix.planetmirror.com/TLS_README.html

It's probably in there somewhere.


- Adam
_________________
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Mon Apr 04, 2005 6:10 pm    Post subject: Reply with quote

Try adding this to your main.cf

#http://www.postfix.org/postconf.5.html#smtp_use_tls
smtp_use_tls = yes
Back to top
View user's profile Send private message
Thesee
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2004
Posts: 138
Location: Belgium

PostPosted: Mon Apr 04, 2005 6:18 pm    Post subject: Reply with quote

It's working!!!!
Thanks a lot! I didn't know that smtp_use_tls would help with the smtpd_use_tls flag set :)
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