OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: local_recipient_maps rejects for non-loca

Re: local_recipient_maps rejects for non-local virtual users ?


Subject: Re: local_recipient_maps rejects for non-local virtual users ?
From: Khetan Gajjar (khetanfreebsd.os.org.za)
Date: Sun Jan 02 2000 - 10:11:45 CST


Around Today, "Wietse Venema" wrote :

>Please give a specific example.

Sure.

The virtual domain is os.org.za, the recipient is
damyantios.org.za, and the domain is "seperated" from other
domains by domainheader as the right hand side of the map:

137=[rootkg] /usr/local/etc/postfix# egrep '(os.org.za domainheader|damyanti)'
/etc/mail/virtusertable
+ egrep '(os.org.za domainheader|damyanti)' /etc/mail/virtusertable
os.org.za domainheader
damyantios.org.za damyantichain.freebsd.os.org.za

Ok, here is the example prior to local_recipient_maps :

121=[rootkg] /usr/local/etc/postfix# postconf | grep local_recipient_maps
+ postconf
+ grep local_recipient_maps
local_recipient_maps =
122=[rootkg] /usr/local/etc/postfix# telnet 0 25
+ telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 Postfix-19991231 ESMTP on kg.ops.uunet.co.za (CHAIN/RBL,!UCE)
helo kg.ops.uunet.co.za
250 kg.ops.uunet.co.za
mail from: khetanuunet.co.za
r250 Ok
cpt to: damyantios.org.za
250 Ok
quit
221 Bye
Connection closed by foreign host.

This is with local_recipient_maps set to the suggested entry :

126=[rootkg] /usr/local/etc/postfix# postconf | grep local_recipient_maps
+ postconf
+ grep local_recipient_maps
local_recipient_maps = $alias_maps, unix:passwd.byname
127=[rootkg] /usr/local/etc/postfix# telnet 0 25
+ telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 Postfix-19991231 ESMTP on kg.ops.uunet.co.za (CHAIN/RBL,!UCE)
helo kg.ops.uunet.co.za
250 kg.ops.uunet.co.za
mail from: khetanuunet.co.za
250 Ok
rcpt to: damyantios.org.za
550 <damyantios.org.za>: User unknown
quit
221 Bye
Connection closed by foreign host.

This is with $virtual_maps added :

131=[rootkg] /usr/local/etc/postfix# postconf | grep local_recipient_maps
+ postconf
+ grep local_recipient_maps
local_recipient_maps = $alias_maps, unix:passwd.byname, $virtual_maps
132=[rootkg] /usr/local/etc/postfix# telnet 0 25
+ telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 Postfix-19991231 ESMTP on kg.ops.uunet.co.za (CHAIN/RBL,!UCE)
helo kg.ops.uunet.co.za
250 kg.ops.uunet.co.za
mail from: khetanuunet.co.za
250 Ok
rcpt to: damyantios.org.za
250 Ok
quit
221 Bye
Connection closed by foreign host.

>Presumably, your virtual maps are listed in mydestination,
>and that is not how Postfix is supposed to be used.

It isn't; I've attached an edited output of postconf -n.

local_recipient_maps = $alias_maps, unix:passwd.byname, $virtual_maps
mydestination = $myhostname, localhost.$mydomain, /etc/mail/whoarewe
mynetworks = xxx.xxx.xxx.xxx/32
relay_domains = $mydestination, $mynetworks, hash:/etc/mail/relay
virtual_maps = hash:/etc/mail/virtusertable

In this case, /etc/mail/whoarewe lists several names the machine
is known as. The domain (os.org.za) is also included. From what
I understand, it should be.

Adding $virtual_maps to local_recipient_maps doesn't appear to
break anything, but I was just wondering why the problem exists.

Khetan Gajjar.

---
khetanuunet.co.za	* khetanos.org.za        * PGP Key, contact
UUNET South Africa	* FreeBSD enthusiast      * details and other
http://www.uunet.co.za/	* http://www.freebsd.org/ * information at
System Administration   * http://link.os.org.za/  * kg+detailsos.org.za



This archive was generated by hypermail 2b27 : Sun Jan 02 2000 - 10:13:47 CST