LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2012, 05:17 AM   #1
aloshiii
LQ Newbie
 
Registered: Jul 2012
Location: bulgaria ,sofia
Posts: 15

Rep: Reputation: Disabled
postfix


Hello Guys ,
i want to ask you about forwarding emails from mail account under postfix into a gmail account .

thanks
 
Old 07-15-2012, 05:25 AM   #2
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by aloshiii View Post
Hello Guys ,
i want to ask you about forwarding emails from mail account under postfix into a gmail account .

thanks
(1) # vi /etc/postfix/main.cf
virtual_alias_domains = sharadchhetri.com
virtual_alias_maps = hash:/etc/postfix/virtual

(2) # vi /etc/postfix/virtual

testuser@sharadchhetri.com ur_gmail_id@gmail.com

(3) # postmap /etc/postfix/virtual

(4) # /etc/init.d/postfix reload

OR

# /etc/init.d/postfix restart
 
Old 07-15-2012, 05:40 AM   #3
aloshiii
LQ Newbie
 
Registered: Jul 2012
Location: bulgaria ,sofia
Posts: 15

Original Poster
Rep: Reputation: Disabled
Question question

is the changes at the main.cf will have some effect on the others mails account i mean is the changes will take effect only on specific account?
 
Old 07-15-2012, 05:53 AM   #4
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by aloshiii View Post
is the changes at the main.cf will have some effect on the others mails account i mean is the changes will take effect only on specific account?
in this file only u have to give specific user's id /etc/postfix/virtual

in main.cf file, see the below bold sentence which call the /etc/postfix/virtual file.
virtual_alias_domains = sharadchhetri.com
virtual_alias_maps = hash:/etc/postfix/virtual


I hope in virtual_alias_domains parameter you have single domain. not multiple domain is listed.
 
Old 07-15-2012, 05:54 AM   #5
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by sharadchhetri View Post
in this file only u have to give specific user's id /etc/postfix/virtual

in main.cf file, see the below bold sentence which call the /etc/postfix/virtual file.
virtual_alias_domains = sharadchhetri.com
virtual_alias_maps = hash:/etc/postfix/virtual


I hope in virtual_alias_domains parameter you have single domain. not multiple domain is listed.
It will not affect other account, it only affect the account which u specify in /etc/postfix/virtual
.

Let us know ur feedback
 
Old 07-15-2012, 06:06 AM   #6
aloshiii
LQ Newbie
 
Registered: Jul 2012
Location: bulgaria ,sofia
Posts: 15

Original Poster
Rep: Reputation: Disabled
Exclamation info

actually i tried to forward it into a email account at the same domain it is done successfully but into gmail account there is no success !!!!!!
 
Old 07-15-2012, 06:11 AM   #7
aloshiii
LQ Newbie
 
Registered: Jul 2012
Location: bulgaria ,sofia
Posts: 15

Original Poster
Rep: Reputation: Disabled
done

i forward it successfuly into gmail
i just already received the mail
thanks bro for helping.
i have another question
im a not so special user of postfix all what i have done on a old account so can you help me about creating a brand new mail on this postfix server
 
Old 07-15-2012, 06:15 AM   #8
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by aloshiii View Post
i forward it successfuly into gmail
i just already received the mail
thanks bro for helping.
i have another question
im a not so special user of postfix all what i have done on a old account so can you help me about creating a brand new mail on this postfix server
Creat new post buddy, many linux user will get benefit. If u ask second question in one thread ,it might be possible some people will not see the post completely.

Smartwork-huge Output.
 
Old 07-15-2012, 06:49 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
sharadchhetri, could you possibly use spaces in your distribution list please? It's breaking the page layout otherwise. Also, please avoid "SMS" speak (e.g. "u" instead of "you") per the LQ rules.
 
Old 07-15-2012, 07:22 AM   #10
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
Quote:
Originally Posted by Nylex View Post
sharadchhetri, could you possibly use spaces in your distribution list please? It's breaking the page layout otherwise. Also, please avoid "SMS" speak (e.g. "u" instead of "you") per the LQ rules.
OK Nylex. Thanks for notifying me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 send email to another postfix in local network (LAN)? h4k33m Linux - Server 9 06-04-2015 04:33 PM
SYSadmin installed postfix, now sendmail sends to qmail not postfix. Why? pablocullen Linux - Server 1 11-18-2009 04:53 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 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