[nflug] Postfix Store and Forward
Robert Wolfe
robert at muzzlethem.com
Sun Jan 25 21:08:49 EST 2009
On 1/25/2009 9:07 PM, Eric Toczek wrote:
> Did you run postmap /etc/postfix/transport to create the hash map? I
> forgot to mention that. What its doing now is not reading the
> transport map, so it will try to relay that mail to the mx, which is
> itself.
> If the map is created right, on startup postfix should log that it is
> reading in a transport map.
>
>
> On 1/25/09, Robert Wolfe<robert at muzzlethem.com> wrote:
>> On 1/25/2009 5:07 PM, Eric Toczek wrote:
>>
>>> in main.cf:
>>>
>>> add the domain name for their domain to the end of "relay_domains"
>>>
>>> add "check_relay_domains" to smtpd_recipient_restrictions
>>>
>>> then finally add:
>>> transport_maps = hash:/etc/postfix/transport
>>>
>>> so then create a transport map at that above location, structured like so:
>>> domain.tld smtp:their.ip.or.hostname
>>>
>>> ex:
>>>
>>> example.com smtp:192.168.0.15
>> Okay, since those lines didn't exist in my main.cf file I had to add
>> them and restart postfix. Once I did and sent a test email, I got the
>> following in my logs:
>>
>> Jan 25 18:38:51 webber postfix/smtp[32519]: DD3AC6819F:
>> to=<robert.wolfe at tinysbbs.com>, relay=net261.ath.cx[74.77.174.23]:25,
>> delay=2.4, delays=0.15/0.04/2.2/0, dsn=5.4.6, status=bounced (mail for
>> tinysbbs.com loops back to myself)
>> Jan 25 18:38:51 webber postfix/smtpd[32514]: disconnect from
>> unknown[192.168.1.1]
>> Jan 25 18:38:51 webber postfix/cleanup[32500]: 4F7FF682F9:
>> message-id=<20090125233851.4F7FF682F9 at mail.bflony.muzzlethem.com>
>> Jan 25 18:38:51 webber postfix/qmgr[32499]: 4F7FF682F9: from=<>,
>> size=3043, nrcpt=1 (queue active)
>> Jan 25 18:38:51 webber postfix/bounce[32520]: DD3AC6819F: sender
>> non-delivery notification: 4F7FF682F9
>>
>> The bounceback I get in return is:
>>
>> This is the mail system at host mail.bflony.muzzlethem.com.
>>
>> I'm sorry to have to inform you that your message could not
>> be delivered to one or more recipients. It's attached below.
>>
>> For further assistance, please send mail to postmaster.
>>
>> If you do so, please include this problem report. You can
>> delete your own text from the attached returned message.
>>
>> The mail system
>>
>> <sysop at tinysbbs.com>: mail for tinysbbs.com loops back to myself
>>
>> Final-Recipient: rfc822; sysop at tinysbbs.com
>> Original-Recipient: rfc822;sysop at tinysbbs.com
>> Action: failed
>> Status: 5.4.6
>> Diagnostic-Code: X-Postfix; mail for tinysbbs.com loops back to myself
>> _______________________________________________
>> nflug mailing list
>> nflug at nflug.org
>> http://www.nflug.org/mailman/listinfo/nflug
>>
>
Yep, it's all working perfectly now! :) Thanks for the step by step
instructions! :)
More information about the nflug
mailing list