List Info

Thread: Postfix Maia and Exchange




Postfix Maia and Exchange
user name
2007-01-29 21:47:14
This is probably more of a postfix question, but does anyone
know of a 
good tutorial or faq to setup a maia/postfix box as a filter
for 
Exchange? I tried an ldap script I found that is supposed to
pull a list 
of valid email accounts out of Exchange but can not get it
working. So, 
in the mean time, I hand edited a relay_recipients file and
postmap'd 
it. I then added these lines to the main.cf file:

[rootmaia postfix]# postconf | grep recipients
local_recipient_maps =
hash:/etc/postfix/exchange_recipients, $alias_maps
relay_recipient_maps =
hash:/etc/postfix/exchange_recipients

But, when I telnet into the box and manually send it a bogus
email, it 
passes it right on through to Exchange. It does not appear
to be paying 
attention to the xxx_recipient_maps files.

- Gary

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Postfix Maia and Exchange
user name
2007-01-29 22:34:59
Hi,

  Not sure how you are trying to set up your Maia, but I do
the frontend
to Exchange witout setting up any users at all... Just use
the default
user () and have postfix probe the exchange server to see
if the account
exists... Here is a sample main.cf file off an in-service
Maia filter:

# See /usr/share/postfix/main.cf.dist for a commented, more
complete version

smtpd_banner = $myhostname ESMTP $mail_name
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

myhostname = filter.foo.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = foo.com
mydestination = foo.com, bar.com, other.com
relayhost = 192.168.1.250
mynetworks = 192.168.1.0/24, 192.168.2.0/24, 127.0.0.0/8
mailbox_size_limit = 25000000
recipient_delimiter =
inet_interfaces = all
message_size_limit = 10000000
local_transport = error:no local mail delivery
local_recipient_maps =
virtual_alias_maps = hash:/etc/postfix/virtual
relay_recipient_maps = hash:/etc/postfix/relay_recipients

transport_maps = hash:/etc/postfix/transport
relay_domains = mrains.com, 192.168.1., 192.168.2,
192.168.5
smtpd_helo_required = yes

smtpd_client_restrictions = reject_rbl_client
dul.dnsbl.sorbs.net, reject_rbl_cl
ient sbl.spamhaus.org, reject_rbl_client cbl.abuseat.org,
reject_rbl_client rela
ys.ordb.org, reject_rbl_client list.dsbl.org

smtpd_sender_restrictions = check_sender_access
hash:/etc/postfix/sender_access,
reject_non_fqdn_sender, reject_unknown_sender_domain

smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, rej
ect_unauth_destination, reject_unauth_pipelining,
reject_unknown_recipient_domai
n, reject_unverified_recipient

unverified_recipient_reject_code = 550
address_verify_map = btree:/var/spool/postfix/verify
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks
content_filter = smtp-amavis:[127.0.0.1]:10024


The transport map simply says:

foo.com              smtp:[192.168.1.250]
bar.com              smtp:[192.168.1.250]
other.com            smtp:[192.168.1.250]


HTH,

Dave
************************************************************
****************
On Mon, 29 Jan 2007, Gary MacKay wrote:

> This is probably more of a postfix question, but does
anyone know of a
> good tutorial or faq to setup a maia/postfix box as a
filter for
> Exchange? I tried an ldap script I found that is
supposed to pull a list
> of valid email accounts out of Exchange but can not get
it working. So,
> in the mean time, I hand edited a relay_recipients file
and postmap'd
> it. I then added these lines to the main.cf file:
>
> [rootmaia postfix]# postconf | grep recipients
> local_recipient_maps =
hash:/etc/postfix/exchange_recipients, $alias_maps
> relay_recipient_maps =
hash:/etc/postfix/exchange_recipients
>
> But, when I telnet into the box and manually send it a
bogus email, it
> passes it right on through to Exchange. It does not
appear to be paying
> attention to the xxx_recipient_maps files.
>
> - Gary
>
> _______________________________________________
> Maia-users mailing list
> Maia-usersrenaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users
>
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Postfix Maia and Exchange
user name
2007-01-29 22:42:54
>This is probably more of a postfix question, but does
anyone know of a
>good tutorial or faq to setup a maia/postfix box as a
filter for
>Exchange? I tried an ldap script I found that is
supposed to pull a list
>of valid email accounts out of Exchange but can not get
it working. So,
>in the mean time, I hand edited a relay_recipients file
and postmap'd
>it. I then added these lines to the main.cf file:
>
>[rootmaia postfix]# postconf | grep recipients
>local_recipient_maps =
hash:/etc/postfix/exchange_recipients, $alias_maps
>relay_recipient_maps =
hash:/etc/postfix/exchange_recipients
>
>But, when I telnet into the box and manually send it a
bogus email, it
>passes it right on through to Exchange. It does not
appear to be paying
>attention to the xxx_recipient_maps files.
>
>- Gary

For the domains you relay for, are the domains listed in
relay_domains (like 
they should be) or have you put the domains in
mydestination? Domains you 
relay for should not be listed in mydestination and
relay_recipient_maps 
will only work for domains listed in relay_domains. Domains
should be listed 
in exactly one address class.
http
://www.postfix.org/ADDRESS_CLASS_README.html

local_recipient_maps are for recipients that are local. Do
you deliver mail 
to mailboxes on the local machine? It may be a good idea to
show 'postconf 
-n'

Gary V

____________________________________________________________
_____
>From predictions to trailers, check out the MSN
Entertainment Guide to the 
Academy Awards® 
http://movies.msn.com/movies/oscars2007/?icid=ncosc
artagline1


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )