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= 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

smtpdbanner = $myhostname ESMTP $mailname (Debian/GNU)

biff = no

appending .domain is the MUA's job.

appenddotmydomain = no

Uncomment the next line to generate "delayed mail" warnings

delaywarningtime = 4h

readme_directory = /usr/share/doc/postfix

TLS parameters

smtpdtlscert_file = /etc/postfix/smtpd.cert

smtpdtlskey_file = /etc/postfix/smtpd.key

smtpdusetls = yes

smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache

smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache

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

mailboxsizelimit = 0

recipient_delimiter = +

inet_interfaces = all

html_directory = /usr/share/doc/postfix/html

messagesizelimit = 30720000

virtualaliasdomains =

virtualaliasmaps = proxy:mysql:/etc/postfix/mysql-virtualforwardings.cf, mysql:/etc/postfix/mysql-virtualemail2email.cf

virtualmailboxdomains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf

virtualmailboxmaps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf

virtualmailboxbase = /home/vmail

virtualuidmaps = static:5000

virtualgidmaps = static:5000

smtpdsaslauth_enable = yes

brokensaslauth_clients = yes

smtpdsaslauthenticated_header = yes

smtpdrecipientrestrictions = permitmynetworks, permitsaslauthenticated, rejectunauth_destination

virtualcreatemaildirsize = yes

virtualmaildirextended = yes

proxyreadmaps = $localrecipientmaps $mydestination $virtualaliasmaps $virtualaliasdomains $virtualmailboxmaps $virtualmailboxdomains $relayrecipientmaps $relaydomains $canonicalmaps $sendercanonicalmaps $recipientcanonicalmaps $relocatedmaps $transportmaps $mynetworks $virtualmailboxlimit_maps

1 Reply

@mactac:

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:

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct