LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to send intranet mail to internet in qmail (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-send-intranet-mail-to-internet-in-qmail-896494/)

amartlk 08-10-2011 12:38 AM

how to send intranet mail to internet in qmail
 
Hi

i have qmail toaster installed on centos5.6 , i want to divert my local intranet mail to my gmail account,i am using thunderbird as email client


Regards
Amar

bathory 08-10-2011 06:36 AM

Hi,

You need to add a .qmail file in your qmail homedir, containing
Code:

&username@gmail.com
Regards

amartlk 08-10-2011 07:41 AM

Thanks guru for replying , i refer the link for .qmail but the .qmail file is not in my qmail directory , i have qmail dir in /var/qmail


Amar

bathory 08-10-2011 08:32 AM

If it doesn't exist you should create it. Make sure you put it in your maildir.
I don't use qmailtoaster but AFAIK it's in /home/vpopmail/domains/domain.com/user/

amartlk 08-10-2011 08:48 AM

hi

i created .qmail file /home/vpopmail/domains/domain.com/user/maildir/ and add

user@gmail.com in this file and restart qmail still not receive mail on user@gmail.com

bathory 08-10-2011 09:14 AM

Quote:

i created .qmail file /home/vpopmail/domains/domain.com/user/maildir/ and add
Are you sure about the path above? As I told you I don't use qmailtoaster, but I guess you should put the .qmail under /home/vpopmail/domains/domain.com/user.
Anyway you can watch the logs and see what happens.

amartlk 08-11-2011 01:59 AM

hi

i am able to send mail from intranet mailid to internet mail id , but local intranet mail is not divert to my internet mail id , i checked log it shows no error shows mail send


AMar

bathory 08-11-2011 02:43 AM

Hi,

As I told you, I don't use qmailtoaster, but after searching a bit, it looks like it's not using .qmail files anymore, because it stores the aliases in a mysql database.
So I guess you can either use qmailadmin to create the alias, or use the dotqmail2valias script mentioned in the above link to import your alias into the database

Regards

amartlk 08-11-2011 02:57 AM

hi

can you please tell me exact steps , as you said i have to create alias,

Amar

bathory 08-11-2011 03:38 AM

Quote:

can you please tell me exact steps , as you said i have to create alias,
Can't as I don't use it.
But if you bother searching, here is what google yielded: Main Menu->Aliases Forwards


All times are GMT -5. The time now is 08:35 PM.