Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th November 2012, 20:22
patrick3853 patrick3853 is offline
Member
 
Join Date: Dec 2008
Posts: 30
Thanks: 3
Thanked 7 Times in 3 Posts
Default Postfix - don't reject unknown user for specific domain

Having a problem with piping emails from postfix to shell script. Here's the setup:

Ubuntu 12.10, Postfix with MySQL Virtual Users (followed this guide)

I have domain example.com which I am hosting email for. When an email comes in for example.com, if a virtual user exists for the to address then send the email normally. If the user doesn't exist, pipe the email to a script.

I have set up a transport for example.com and defined it in master.cf to pipe the email to the script. The script checks if a user exists for the To address and acts accordingly. The problem is that if the user doesn't exist, the email never makes it to my transport. Instead I get "user unkown in virtual alias table" in mail.log.

So the question is, how can I tell postfix not to reject email for unkown users on a specific domain, or is that even possible?

btw, I know that adding a catchall alias for the domain will solve this, but it doesn't work in my setup as I need to preserve the To address, and a catchall alias changes the to address to the catchall.

Thanks in advance for any help
Reply With Quote
Sponsored Links
  #2  
Old 29th November 2012, 22:46
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
 
Default

Hello,

add @example.com to the relay recipient map,

Cheers!
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
patrick3853 (4th December 2012)
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
RoundCube Sends but will not receive. happz Installation/Configuration 33 17th April 2010 21:55
Cannot send or receive mail farbrorc Installation/Configuration 6 24th January 2010 11:56
CGI and FormMail Cracklefish Installation/Configuration 17 13th October 2009 13:40
postfix, pop3 uvbnserved Server Operation 22 24th May 2009 21:00


All times are GMT +2. The time now is 02:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.