Hi guys
I have a little problem here.
I'm trying to deliver mail with my postfix using gmail as an smarthost.
I get this error
host smtp.gmail.com[74.125.91.109] said: 530 5.7.0 Must
issue a STARTTLS command first. 22sm628904qyk.10 (in reply to MAIL FROM
command)
I'm wondering if the answer to this is just inlcude
smtpd_use_tls = yes
and somethig like
smtpd_tls_session_cache_timeout = 120s
because I don't have valid certificates, and my domain is a fake one, so I
can't get one.
Thanks
David
##############################################
I include my main.cf
##############################################
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
myorigin = $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.10.0/24, 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
luser_relay = [email protected]
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
#Postfix on hosts without a real Internet hostname
#This provides the mapping from "[email protected]" to
"[email protected]".
#This part is required.
canonical_maps = hash:/etc/postfix/canonical
#Deliver mail for "[email protected]" locally, instead of sending it to
the ISP.
#This part is not required but is convenient.
virtual_alias_maps = hash:/etc/postfix/virtual
#Enabling SASL authentication in the Postfix SMTP client
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
#relayhost = [mail.myisp.net]
# Alternative form:
# relayhost = [mail.myisp.net]:submission
relayhost = [smtp.gmail.com]:submission
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_security_options = noanonymous
mydestination = $myhostname, localhost.$mydomain, $mydomain
masquerade_domains = $mydomain
myhostname = centrino.xxx.com
mydomain = xxx.com
bounce_size_limit = 5000
message_size_limit = 500000
mailbox_size_limit = 512000000000
#mailbox_command = /usr/bin/procmail
#defer_transports = smtp (Only for on-demand dialup IP hosts)
defer_transports = smtp
smtp_generic_maps = hash:/etc/postfix/generic
disable_dns_lookups = yes
#content_filter=amavisfeed:[127.0.0.1]:10024
smtpd_recipient_limit = 100
smtp_connection_cache_on_demand = no
inet_interfaces = 192.168.10.11, 127.0.0.1
#delay_warning_time = 4d
helpful_warnings = yes
#default_destination_concurrency_limit = 1
smtp_connect_timeout = 10s
#When a remote SMTP server rejects a SASL authentication request with a 535
reply code,
#defer mail delivery instead of returning mail as undeliverable.
smtp_sasl_auth_soft_bounce = yes
bounce_notice_recipient = postmaster
delay_notice_recipient = postmaster
error_notice_recipient = postmaster
notify_classes = bounce, delay, policy, protocol, resource, software