LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-03-2006, 10:45 AM   #1
novis
Member
 
Registered: May 2006
Posts: 59

Rep: Reputation: 15
Sendmail ETRN between 2 mail servers


Hi,

I want to make a backup mail server, and i am testing the posibilities to do the transfer between the second mail server and the main. These 2 servers are in the same network.

I use this comands:

telnet 192.168.1.2 (secondary) smtp
etrn 192.168.1.1 (primary)

and... it say:

250 2.0.0 Queuing for node 192.168.1.1 started

But... does nothing...

Any idea?

Last edited by novis; 10-09-2006 at 01:57 AM.
 
Old 10-06-2006, 05:26 AM   #2
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
No ideas?

Well, trying other posibilities, i found fetchmail, using webmin to configure it, make one user to test and wen i want to use it, returns me:

//.fetchmail.pid: Permission denied
fetchmail: lock creation failed.
 
Old 10-06-2006, 09:34 AM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
250 2.0.0 Queuing for node 192.168.10.1 started
It should say "Queuing for node 192.168.1.1", given the information you gave above. But let's assume it was a typo.
So, at this point the secondary server will try to make an SMTP connection to your primary. If something went wrong, it would be in the logs. Also, make sure you can "telnet 192.168.1.1 25" from the secondary.
 
Old 10-07-2006, 01:46 AM   #4
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Yep, the ip is 192.168.1.1

I can make telnet smtp in both directions.

Where can i fins the logs?

Regards
 
Old 10-07-2006, 02:52 AM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Check /var/log/. You can also look in /etc/syslog.conf to see where mail goes.
 
Old 10-09-2006, 02:46 AM   #6
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
This is the log from the seconday mail server.

Oct 9 09:42:45 192.168.10.2 sendmail[23043]: k997gpUQ023043: [192.168.10.1]: ETRN 192.168.10.1
 
Old 10-09-2006, 05:24 AM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
It's not complaining about the syntax (listing an ip address after ETRN). But, according to RFC 1985,
Quote:
The specified node name must be a fully qualified domain name for the
node, which may refer to a CNAME or MX pointer in the DNS. If an
alias is used for the node, multiple ETRN commands may be needed to
start the processing for the node as it may be listed at the remote
site under multiple names. This can also be addressed using the
options discussed in section 5.3.
So, try something like
Code:
ETRN domain.com

Last edited by Berhanie; 10-09-2006 at 05:26 AM.
 
Old 10-09-2006, 06:06 AM   #8
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
The same. using "my-domain.com" does nothing...
 
Old 10-09-2006, 10:39 AM   #9
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Are you sure there is mail waiting in queue (see output of mailq)?
 
Old 10-09-2006, 10:40 AM   #10
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
using webmin, there's an addon that can see user's mailboxes and two users have mail at /var/spool/mail (sendmail)
 
Old 10-09-2006, 07:47 PM   #11
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Mail in users' mailboxes has already been delivered. It's not queued. ETRN released queued mail.
 
Old 10-10-2006, 01:49 AM   #12
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
And... how can i transfer the mails in mailboxes to another server in the same network? if this new server have mails too, and the same users?
 
Old 10-10-2006, 08:19 AM   #13
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Instead of scattering your mail in various computers, you can arrange for all mail to be delivered to a central IMAP server. Then, users can use an IMAP client, such as mutt or thunderbird, to read their mail by connecting to the server. It's clean, because all mail remains on the server.
 
Old 10-11-2006, 08:43 AM   #14
novis
Member
 
Registered: May 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks a lot Berhanie for your time and help.

Finally found the solution with fetchmail, the problem was that (i don't know how...) the users /home have others owners.

For exemple, the user Roger, have the owner Paul:Paul
And the user Paul have the owner Ana:Ana

Changing this have the solution.

Thanks
best regards!
 
Old 10-11-2006, 10:19 AM   #15
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You're welcome, novis. I'm happy to hear that you solved your problem.
 
  


Reply



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
Sendmail did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA paleogryph Linux - Software 3 08-31-2007 04:28 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 04:38 PM
Sendmail: did not issue MAIL/EXPN/VRFY/ETRN nenad Fedora 1 03-31-2005 01:12 PM
configuring sendmail to use external mail servers tt826 Linux - Networking 42 12-05-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:30 AM.

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