Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jul 12, 2014 12:16 pm 
Offline
Newbie

Joined: Sat Jul 12, 2014 11:59 am
Posts: 2
Hi all, I have a postfix with mysql and courier that I set up a long time ago following https://library.linode.com/email/postfi ... an-5-lenny, which works fine. I've tried setting up forwarding as described here https://workaround.org/book/export/html/58 but it's not working, I suspect because I already have a 'real' inbox at the address I want to forward. It'll probably make more sense if I show you...

posftix config has:
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf

the forwardings table in mysql has:
abuse@mysite.com dave@mysite.com
(etc. - all these local forwards have always worked fine)
dave@mysite.com dave@gmail.com (which I added today)

the users table has:
dave@mysite.com (password)
(etc.)

postmap -q abuse@mysite.com mysql:/etc/postfix/mysql-virtual_forwardings.cf returns dave@mysite.com (as you'd expect)
postmap -q dave@mysite.com mysql:/etc/postfix/mysql-virtual_forwardings.cf returns dave@gmail.com

...But emails are not being forwarded to dave@gmail.com.

Ideally I'd like emails to continue to be available via courier on my server but *also* be forwarded to dave@gmail.com. If not possible, I need to be able to continue to run postfix/courier as is for other accounts, but need dave@mysite.com forwarded to dave@gmail.com without too much upheval to the other accounts/setup I have on the box.

Much thanks in advance for any pointers.

Dave


Top
   
PostPosted: Thu Sep 25, 2014 11:27 am 
Offline
Newbie

Joined: Sat Jul 12, 2014 11:59 am
Posts: 2
I'm still trying to get this working. It looks from various web pages like I should be able to add

sender_bcc_maps = hash:/etc/postfix/sender_bcc
recipient_bcc_maps = hash:/etc/postfix/recp_bcc

to main.cf, then in those files sender_bcc and recp_bcc have:
me@mylinode.com me@gmail.com

Then run postmap /etc/postfix/recp_bcc; postmap /etc/postfix/sender_bcc; service postfix restart

But no luck - no bccs to gmail, and not a sausage in mail.log or mail.info about it.

Any ideas please?


Top
   
PostPosted: Sun Sep 28, 2014 3:19 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You might be able to generate extra logging using the debug_peer_list config option, or by starting the cleanup daemon with the -v option to make it more verbose. If Postfix is seeing the mail as being generated internally, it won't add automatic BCC recipients; that might be what's happening, or maybe something else.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: mkorsak and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group