×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Failed to connect to server

Failed to connect to server

Failed to connect to server

(OP)
Hello,
I'm running a qmail server with several mail inboxes setup, on attemping to retrieve mail I am getting a persistent "Failed to connect to server mail.xxxxxxx.com" Nevertheless, 1 or 2 pieces of mail might come through intermittently. The mail, meanwhie is accumulating in the various Maildir/cur directories.

The
qmailctl stat
/service/qmail-send: up (pid 73073) 0 seconds
/service/qmail-send/log: up (pid 712) 150330 seconds
/service/qmail-smtpd: up (pid 715) 150330 seconds
/service/qmail-smtpd/log: up (pid 717) 150330 seconds
messages in queue: 2
messages in queue but not yet preprocessed: 0
/service/qmail-pop3d: up (pid 713) 150330 seconds
/service/qmail-pop3d/log: up (pid 714) 150330 seconds

Could someone recommend a good source that can provide trouble shooting guidance through this morass.

Thanks

RE: Failed to connect to server

/service/qmail-send: up (pid 73073) 0 seconds

is problematic, it should be up.  That process is responsible for local delivery of mail and for outbound delivery to remote hosts.  that may help some of your issues.

How are you connecting to pick up mail?  IMAP or POP3?

D.E.R. Management - IT Project Management Consulting
http://www.dermanagement.com/

RE: Failed to connect to server

(OP)
I am currently using POP3 but am considering adding IMAP [horde]

How can I get /service/qmail-send >> up; attempting to start from /usr/var/qmail/bin/qmail-send >
"alert: cannot start: qmail-send is already running"

and what typically causes it to go down
(just want to know how to prevent it from going down)

RE: Failed to connect to server

Well, your status printout shows qmail-send is down...

commands you could try:

"killall qmail-send"
"svc -a /service/qmail-send"
"svc -d /service/qmail-send; svc -u /service/qmail-send"

if you see that the "qmailctl stat" still shows qmail-send as being down, then you need to take a strong look at your qmail-send log file to show what error messages reveal.
 

D.E.R. Management - IT Project Management Consulting
http://www.dermanagement.com/

RE: Failed to connect to server

(OP)
Thanks! and sorrry I had to be away last week

qmail-send is up but problem persists

qmailctl stat
/service/qmail-send: up (pid 66055) 3059 seconds
/service/qmail-send/log: up (pid 88610) 611155 seconds
/service/qmail-smtpd: up (pid 88613) 611155 seconds
/service/qmail-smtpd/log: up (pid 88614) 611155 seconds
messages in queue: 2
messages in queue but not yet preprocessed: 0
/service/qmail-pop3d: up (pid 88617) 611155 seconds
/service/qmail-pop3d/log: up (pid 88618) 611155 seconds


Now there is something odd looking about my /service/qmail-send/log directory structure

ls -l /service/qmail-send/log
total 10
drwxr-xr-x  4 root    qmail  512 Jun 10 12:42 ./
drwxr-xr-x  4 root    qmail  512 Jun 16 00:26 ../
drwxr-xr-x  3 qmaill  qmail  512 Jun 17 19:58 main/
-rwxr-xr-x  1 root    qmail   89 Jun 17 21:24 run*
drwx------  2 root    qmail  512 Oct 13 00:57 supervise/

there doesn't seem to be a log file located there, or am I missing something? and if there is one, which of these is it, at least it should tell something about what is going on

ls -R /service/qmail-send/log
./              ../             main/           run*            supervise/

/service/qmail-send/log/main:
./                              lock
../                             main/
@40000000485879e33a6ae32c.s*    state
current*

/service/qmail-send/log/main/main:
./              ../             current         lock            state

/service/qmail-send/log/supervise:
./              control|        ok|
../             lock            status


Thanks

RE: Failed to connect to server

Why does your display of file "run" have an asterisk in the filename?

"run*"

The actual location of the log file is specified in the "log/run" script...  Often, but not by specific rule, the logs are kept in

/var/log/qmail/[service]/

Again, the file /service/qmail-send/log/run will tell you your log location.

D.E.R. Management - IT Project Management Consulting
http://www.dermanagement.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close