Linode Forum
https://forum.linode.com/

Problems getting Postfix working correctly
https://forum.linode.com/viewtopic.php?f=11&t=5791
Page 1 of 1

Author:  mactac [ Sat Jul 10, 2010 12:07 am ]
Post subject:  Problems getting Postfix working correctly

I'm using debian, and installed the postfix/mysql as per the step-by step.

One problem, is that I cannot send email to the outside world. Mail delivers locally.

Any ideas? What info can I provide that will help? I'm a bit of a noob, but know some basic linux.

thanks!

here's what mail mail.log looks like after sending to an external address:
Jul 10 04:32:00 li159-162 postfix/pickup[10666]: B253BC4B5: uid=0 from=<root>
Jul 10 04:32:00 li159-162 postfix/cleanup[10797]: B253BC4B5: message-id=<20100710043200.B253BC4B5@wagorn.com>
Jul 10 04:32:00 li159-162 postfix/qmgr[10665]: B253BC4B5: from=<root@wagorn.com>, size=275, nrcpt=1 (queue active)
Jul 10 04:32:00 li159-162 postfix/smtp[10800]: B253BC4B5: to=<paulwagorn@hotmail.com>, relay=mx2.hotmail.com[65.54.188.126]:25, delay=0.06, delays=0.04/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 <20100710043200.B253BC4B5@wagorn.com> Queued mail for delivery)
Jul 10 04:32:00 li159-162 postfix/qmgr[10665]: B253BC4B5: removed


does this mean it THINKS it sent it? is it queued somewhere? how do a get the queue to send?


Here is main.cf:


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = wagorn.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = wagorn.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps

Author:  Vance [ Sat Jul 10, 2010 1:23 am ]
Post subject:  Re: Problems getting Postfix working correctly

mactac wrote:
Jul 10 04:32:00 li159-162 postfix/smtp[10800]: B253BC4B5: to=<paulwagorn@hotmail.com>, relay=mx2.hotmail.com[65.54.188.126]:25, delay=0.06, delays=0.04/0.01/0.01/0.01, dsn=2.0.0, status=sent (250 <20100710043200.B253BC4B5@wagorn.com> Queued mail for delivery)

mactac wrote:
does this mean it THINKS it sent it? is it queued somewhere? how do a get the queue to send?


This line means that the machine mx2.hotmail.com accepted the message for delivery (note the 250 response code - 2xx codes indicate success, 4xx and 5xx mean failure). However, there is no guarantee that Hotmail actually placed the message into the inbox for paulwagorn. It may decide to put it into a spam folder, or even drop it on the floor. Try testing by mailing elsewhere.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/