OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[Fwd: /etc/aliases woth transport for same domain?]

From: Neil Wilson (neilwdcdata.co.za)
Date: Wed Aug 22 2007 - 02:19:01 CDT


Sorry to repost, but is my request even possible?

Surely there is some way to get the transport and aliases working together?

Thanks.

-------- Original Message --------
Subject: /etc/aliases woth transport for same domain?
Date: Tue, 21 Aug 2007 16:47:32 +0200
From: Neil Wilson <neilwdcdata.co.za>
To: postfix-userspostfix.org

Hi guys,

Is it possible to use the /etc/aliases table while also forwarding email for the same domain
to another server using a transport?

It only needs to be for a few addresses not all of them.

My reason for this is, mailman relies on these aliases to send out mail, but I need to have
all email

/etc/aliases
## mailman mailing list
mailman: "|/usr/local/mailman/mail/mailman post mailman"
mailman-admin: "|/usr/local/mailman/mail/mailman admin mailman"
mailman-bounces: "|/usr/local/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/usr/local/mailman/mail/mailman confirm mailman"

/etc/postfix/main.cf
mydomain = lists.blabla.co.za
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain,
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 10.1.0.1/32, 10.1.0.3/32
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_sender_domain, hash:/etc/postfix/access
alias_maps = hash:/etc/aliases
transport_maps = hash:/etc/postfix/transport
relay_transport = smtp
local_recipient_maps =
local_transport = error:local mail delivery is disabled on this machine

/etc/postfix/transport
blabla.co.za smtp:[10.1.0.3]

Below is the error from my logs...

Aug 21 15:09:20 lists postfix/smtpd[22612]: NOQUEUE: reject: RCPT from unknown[10.1.0.5]:
550 <allstafflists.blabla.co.za>: Recipient address rejected: local mail delivery is
disabled on this machine; from=<swardblabla.co.za> to=<allstafflists.blabla.co.za>
proto=ESMTP helo=<mail.blabla.co.za>

Any assistance will be greatly appreciated.

Thanks in advance.

Regards.

Neil

--
This email and all contents are subject to the following disclaimer:
http://www.dcdata.co.za/emaildisclaimer.html