Postfix w/MySQL Virtual Alias Issue

This is a discussion on Postfix w/MySQL Virtual Alias Issue within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hello all, I am having trouble with a virtual alias that is being run through a Postfix (2.2.12) ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 1 Week Ago
wduffee
 
Posts: n/a
Default Postfix w/MySQL Virtual Alias Issue

Hello all,

I am having trouble with a virtual alias that is being run through a
Postfix (2.2.12) installation that uses MySQL for virtual domain
mappings. I get an error in my maillog that says the alias is an
unknown user after I send mail to that alias.

We'll assume virtual domain of example.com, and the alias is
"alias@example.com" and the destination is "realmail@example.com"

I have my main.cf as follows:

virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf

When I run a

#postmap -q "alias@example.com" mysql:/etc/postfix/sql/
virtual_alias_maps.cf

I get

realmail@example.com

So the mappings seem to be working correctly.

But when I

#mail alias@example.com

and send mail on to the alias@example.com address, this shows up in my
maillog:

Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
to=<alias@example.com>, relay=virtual, delay=1, status=bounced
(unknown user: "alias@example.com")

And then it is, obviously, lost :(

I can send mail directly to realmail@example.com without any issues so
I know that example.com is configured correctly (or at least,
correctly enough?)

Anyone have any ideas I could try to get aliases working?

Thanks,
Wesley
Reply With Quote
  #2 (permalink)  
Old 1 Week Ago
Ralf Hildebrandt
 
Posts: n/a
Default Re: Postfix w/MySQL Virtual Alias Issue

On 2008-04-30, wduffee <wduffee@gmail.com> wrote:
> Hello all,
>
> I am having trouble with a virtual alias that is being run through a
> Postfix (2.2.12) installation that uses MySQL for virtual domain
> mappings. I get an error in my maillog that says the alias is an
> unknown user after I send mail to that alias.
>
> We'll assume virtual domain of example.com, and the alias is
> "alias@example.com" and the destination is "realmail@example.com"
>
> I have my main.cf as follows:
>
> virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf


This is virtual_alias_maps, the thing which REWRITES addresses

> Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
> to=<alias@example.com>, relay=virtual, delay=1, status=bounced
> (unknown user: "alias@example.com")


THIS is the virtual delivery agent at work, which uses
virtual_MAILBOX_maps

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to snickebo@charite.de
Reply With Quote
  #3 (permalink)  
Old 1 Week Ago
wduffee
 
Posts: n/a
Default Re: Postfix w/MySQL Virtual Alias Issue

Sounds great - makes sense.

Thanks!

On May 1, 4:00 am, Ralf Hildebrandt <hil...@charite.de> wrote:
> On 2008-04-30, wduffee <wduf...@gmail.com> wrote:
>
> > Hello all,

>
> > I am having trouble with a virtual alias that is being run through a
> > Postfix (2.2.12) installation that uses MySQL for virtual domain
> > mappings. I get an error in my maillog that says the alias is an
> > unknown user after I send mail to that alias.

>
> > We'll assume virtual domain of example.com, and the alias is
> > "al...@example.com" and the destination is "realm...@example.com"

>
> > I have my main.cf as follows:

>
> > virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf

>
> This is virtual_alias_maps, the thing which REWRITES addresses
>
> > Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
> > to=<al...@example.com>, relay=virtual, delay=1, status=bounced
> > (unknown user: "al...@example.com")

>
> THIS is the virtual delivery agent at work, which uses
> virtual_MAILBOX_maps
>
> --
> Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebra...@charite.de
> Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
> IT-Zentrum Standort CBF send no mail to snick...@charite.de


Reply With Quote
  #4 (permalink)  
Old 4 Days Ago
Mike
 
Posts: n/a
Default Re: Postfix w/MySQL Virtual Alias Issue

On May 1, 4:00*am, Ralf Hildebrandt <hil...@charite.de> wrote:
> On 2008-04-30, wduffee <wduf...@gmail.com> wrote:
>
> > Hello all,

>
> > I am having trouble with a virtual alias that is being run through a
> > Postfix (2.2.12) installation that uses MySQL for virtual domain
> > mappings. I get an error in my maillog that says the alias is an
> > unknown user after I send mail to that alias.

>
> > We'll assume virtual domain of example.com, and the alias is
> > "al...@example.com" and the destination is "realm...@example.com"

>
> > I have my main.cf as follows:

>
> > virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf

>
> This is virtual_alias_maps, the thing which REWRITES addresses
>
> > Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
> > to=<al...@example.com>, relay=virtual, delay=1, status=bounced
> > (unknown user: "al...@example.com")

>
> THIS is the virtual delivery agent at work, which uses
> virtual_MAILBOX_maps
>
> --
> Ralf Hildebrandt (i.A. des IT-Zentrums) * * * * Ralf.Hildebra...@charite.de
> Charite - Universitätsmedizin Berlin * * * * * *Tel. *+49 (0)30-450 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin * *Fax. *+49 (0)30-450 570-962
> IT-Zentrum Standort CBF * * * * * * * * send no mail to snick...@charite.de


I've been having this same issue, and I am a bit lost in your reply.

How would one make it so the alias file works? rather then having a
box for each address.
Reply With Quote
  #5 (permalink)  
Old 3 Days Ago
Chris Babcock
 
Posts: n/a
Default Re: Postfix w/MySQL Virtual Alias Issue


> > > virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf

> >
> > This is virtual_alias_maps, the thing which REWRITES addresses
> >
> > > Apr 29 15:26:03 example postfix/virtual[17937]: C771D11CC61B:
> > > to=<al...@example.com>, relay=virtual, delay=1, status=bounced
> > > (unknown user: "al...@example.com")

> >
> > THIS is the virtual delivery agent at work, which uses
> > virtual_MAILBOX_maps


The error message is not related to that particular setting. You'll
need to take a closer look at the Virtual Address ReadMe to troubleshoot
your set up. If you grep your main.cf file for "virtual" then you'll
either find virtual *mailbox* settings that conflict with your
virtual *alias* settings or that the ultimate destination for the
aliased address is not configured properly in virtual mailboxes.

Chris

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0