LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-10-2011, 01:38 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
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
 
Old 08-10-2011, 07:36 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

You need to add a .qmail file in your qmail homedir, containing
Code:
&username@gmail.com
Regards

Last edited by bathory; 08-10-2011 at 12:20 PM.
 
Old 08-10-2011, 08:41 AM   #3
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
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
 
Old 08-10-2011, 09:32 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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/

Last edited by bathory; 08-10-2011 at 12:20 PM.
 
Old 08-10-2011, 09:48 AM   #5
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
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
 
Old 08-10-2011, 10:14 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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.
 
Old 08-11-2011, 02:59 AM   #7
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
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
 
Old 08-11-2011, 03:43 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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
 
Old 08-11-2011, 03:57 AM   #9
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
hi

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

Amar
 
Old 08-11-2011, 04:38 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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
 
  


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
Want to send mail to Intranet Machine? your_shadow03 Linux - Newbie 3 10-03-2009 12:29 PM
[qmail] can't send mail using 'qmail-inject' or 'mail' plpinet Linux - Server 5 07-04-2009 01:16 PM
Qmail to send mail to New Mail Server dumbsheep Linux - Server 0 06-17-2008 11:36 AM
Send mail or Qmail Bala552005 LinuxQuestions.org Member Intro 1 06-11-2007 10:25 AM
can't send mail using qmail MPowers Linux - Software 1 03-10-2006 05:13 AM


All times are GMT -5. The time now is 02:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration