LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-13-2011, 03:02 AM   #16
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6

Now just try restarting the mail server and check.

You have set the time in the configuration file queuelifetime using "echo 200 > /var/qmail/control/queuelifetime".
 
Old 06-13-2011, 04:08 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Quote:
queuelifetime~: I have no idea what this file does.
This is a backup done by your editor.
Quote:
echo 200 > /var/qmail/control/queuelifetime

shows nothing output
As the previous poster said, it just writes 200 in /var/qmail/control/queuelifetime overwriting any existing value.

If it still doesn't work, could you tell us how did you install qmail? Are you using a package like qmailtoaster or qmailrocks?
 
Old 06-14-2011, 04:17 AM   #18
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

pls reply

Regards
Amar
 
Old 06-14-2011, 04:29 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Quote:
Originally Posted by amartlk View Post
Hi

pls reply

Regards
Amar
What reply are you waiting for? Have you done what was proposed in my previous post? And if yes, what happened?
You may also post some logs here to see what happens to an external email.
Also you didn't say how you've installed qmail.
 
Old 06-14-2011, 06:09 AM   #20
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

ok
Regards
Amar
 
Old 06-14-2011, 06:14 AM   #21
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi
/var/qmail/bin/qmail-showctl |grep queuelifetime

shows output as
queuelifetime: Message lifetime in the queue is 200 seconds.

queuelifetime~: I have no idea what this file does.


and

echo 200 > /var/qmail/control/queuelifetime

shows nothing output

Regards
Amar
 
Old 06-14-2011, 07:37 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Read again my post #17 above.
 
Old 06-14-2011, 08:16 AM   #23
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi

installed using package like qmailtoaster
 
Old 06-14-2011, 09:26 AM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Looks like qmailtoaster uses the same file and in the same location, even though it's default time is 86400 (1 day), so I don't know why it's not working for you.
Try to restart qmail again, flush the queue and watch or post here the relevant logs
Code:
qmailctl restart
qmailctl doqueue
 
Old 06-14-2011, 10:57 AM   #25
papa2ae
LQ Newbie
 
Registered: Jun 2011
Posts: 10

Rep: Reputation: Disabled
Quote:
echo 200 > /var/qmail/control/queuelifetime

shows nothing output
It shouldnt give you any output, as it is placing the number 200 in /var/qmail/control/queuelifetime

So if you really want to see the output, open the file /var/qmail/control/queuelifetime

using your favourite editor, like vi or nano.

Quote:
vi /var/qmail/control/queuelifetime
or

Quote:
nano /var/qmail/control/queuelifetime
and you will see
 
Old 06-15-2011, 04:44 AM   #26
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
HI

i make qmailctl restart and qmailctl doqueue and then check qmailctl queue it shows output as
[root@mail ~]# qmailctl queue
messages in queue: 8
messages in queue but not yet preprocessed: 0
15 Jun 2011 09:38:42 GMT #5440147 2500 <#@[]>
remote postmaster@mail
11 Jun 2011 23:00:02 GMT #5441872 1259 <eceived: (qmail 18458 invok>
remote postmaster@mail
15 Jun 2011 09:40:01 GMT #5440332 1275 <anonymous@mail.abc.in>
remote postmaster@mail
15 Jun 2011 09:38:45 GMT #5440223 2500 <#@[]>
remote postmaster@mail
13 Jun 2011 12:45:02 GMT #5448510 1263 <eceived: (qmail 28039 invokZ>
remote postmaster@mail
15 Jun 2011 09:39:01 GMT #5440347 2500 <#@[]>
remote postmaster@mail
15 Jun 2011 09:38:49 GMT #5439637 587 <amar.tlk@abc.in>
remote amar.tlk@yahoo.com
15 Jun 2011 09:38:57 GMT #5440419 2500 <#@[]>
remote postmaster@mail


Regards

Amar

Last edited by amartlk; 06-15-2011 at 04:46 AM.
 
Old 06-15-2011, 06:08 AM   #27
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Hi,

All these mails in queue are to postmaster, except the one to yahoo. This one should expire after 200sec and sent back to sender. According to queue, the sender is amar.tlk@abc.in. If neither the sender is a local account, it will bounced after another 200sec to postmaster.
The fact is that your postmaster account is not correct (postmaster@mail). You should edit /var/qmail/alias/.qmail-postmaster and put in there your userid

BTW what's in your /var/qmail/control/locals file?
 
Old 06-15-2011, 06:54 AM   #28
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Hi
in /var/qmail/control/locals file contain mail.abc.in abc.in is my local domain
what is purpose of editing my id in /var/qmail/alias/.qmail-postmaster


Regards
Amar
 
Old 06-15-2011, 07:42 AM   #29
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,734

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
Quote:
in /var/qmail/control/locals file contain mail.abc.in abc.in is my local domain
They should be both in there, if you want to accept mail for amar.tlk@abc.in

Quote:
what is purpose of editing my id in /var/qmail/alias/.qmail-postmaster
postmater should be aliased to an existing account, if you want to be informed when there is some problem with your mailserver. If you are the administrator, it should contain your userid (eg. amar.tlk)
 
Old 06-15-2011, 08:11 AM   #30
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thumbs up

Thanks

Your solution works !!!!!!!


Regards
Amar

Last edited by amartlk; 06-15-2011 at 08:21 AM.
 
  


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
[SOLVED] How to restrict some uses to send mail to outside domains mail4vijay Linux - General 25 04-02-2010 04:24 AM
Restrict user to send mail jeesun Linux - Server 12 10-14-2009 04:40 AM
Restrict users of a domain to send/receive mail from one particular domain tanveer Linux - Server 0 09-02-2007 02:01 AM
sendmail - how to send mail from multiple domains? neocontrol Linux - Server 1 05-14-2007 02:18 AM
Sendmail: How can I avoid some users send mail to outside domains? lordphantom82 Linux - Software 0 11-16-2004 07:23 PM


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