LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2014, 07:02 PM   #1
ndc
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 9, 17, 20
Posts: 7

Rep: Reputation: 0
Postfix - Deliver mail locally and forward a copy


I read other similar threads and found what I had assumed would work, but I probably don't have a good enough understanding of Postfix.

I have a single domain on this particular server, but postfix is configured for virtual domains.

I want an email that arrives for a real local user to not only be delivered to the local system, but also send a copy to someone@anotherdomain.com

If I make an entry in /etc/aliases, it sends to the remote user, but no local copy.

If I make an entry in /etc/postfix/virtual it does the same thing.

Thanks for your help

Jim
 
Old 04-25-2014, 03:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I'm not very familiar with postfix delivery, but from this it looks like it also uses the .forward as sendmail does.
In this case you can put a .forward file in the user's homedir containing:
Code:
\username, someone@anotherdomain.com
Regards
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Postfix gateway forward mail to Exchange + store a copy on local Cyrus IMAP? MheAd Linux - Server 5 11-17-2011 03:40 PM
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-21-2011 11:12 PM
Auto copy/forward mail on mailserver (postfix/courier) Pinkdog Linux - Server 2 04-11-2007 07:58 AM
Postfix: Need to deliver all local mail to 1 account, then forward OneBinary Linux - Software 3 01-05-2006 04:49 PM
Forward All Postfix messages and deliver them dlublink Linux - Networking 1 12-27-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration