OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: virtual_alias_maps: rewriting outbound

From: Chris McKeever (techjedigmail.com)
Date: Sun Jul 02 2006 - 16:27:24 CDT


On 7/2/06, mouss <usebsdfree.fr> wrote:
> Chris McKeever wrote:
> > Just for clarification on a SMTP session, right during the RCPT TO:
> > communication, if the address is invalid, it should falg it as such
> > right then...
>
> Yes.
> >
> > so, this example against EBAY would not be correct:
> >
> > 250 sjciport02.sjc.ebay.com
> > MAIL FROM: cgmckeevergoogle.com
> > 250 sender <cgmckeevergoogle.com> ok
> > RCPT TO: cgmckeeverebay.com
> > 250 recipient <cgmckeeverebay.com> ok
> Yes, they're broken... you won the right to submit them to spamcops...

didnt mean for that too look like 'I am being a retard' as more so an
real example of communication for clarity - If I looked like a retard,
sorry..

so - I am getting this now regarding the bounce verse the valid
recipient...now I am having an issue wiht just getting POSTFIX to
idntify the invalid recipient.

If I open up a SMTP connection and RCPT TO: an invalid domain
it flags it as such (this is good)
if I remove ALL my virtual maps less one, and do a RCPT TO: an invalid user
it still responds OK

looking at: (http://www.postfix.org/postconf.5.html#reject_unlisted_recipient)
    * The recipient domain matches $mydestination, $inet_interfaces
or $proxy_interfaces, but the recipient is not listed in
$local_recipient_maps, and $local_recipient_maps is not null.
    * The recipient domain matches $virtual_alias_domains but the
recipient is not listed in $virtual_alias_maps.
    * The recipient domain matches $virtual_mailbox_domains but the
recipient is not listed in $virtual_mailbox_maps, and
$virtual_mailbox_maps is not null.
    * The recipient domain matches $relay_domains but the recipient is
not listed in $relay_recipient_maps, and $relay_recipient_maps is not
null.

it should reject it - so I cant even get a generic rejection not even
going down the path of all the rewrites...

any thoughts as to where my vlaidation is failing??

postconf -n
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
myhostname = mailgate.prupref.com
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = regexp:/etc/postfix/list-redirect.cf
virtual_mailbox_base = /mailbox

>
>
> PS. Top posting is not very appreciated on this list. you'll get many
> people angry after you...
> Instead, reply after the qutoed message. it's left to your judgement to
> "cleanup" by removing
>

--
----------------------------------
please respond to the list .. if you need to contact me direct
cgmckeever is the account
prupref.com is the domain

<A href="http://www.prupref.com">Simply Chicago Real Estate</A>