Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-03-2006, 10:45 AM
|
#1
|
Member
Registered: May 2006
Posts: 59
Rep:
|
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.
|
|
|
10-06-2006, 05:26 AM
|
#2
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
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.
|
|
|
10-06-2006, 09:34 AM
|
#3
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
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.
|
|
|
10-07-2006, 01:46 AM
|
#4
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
Yep, the ip is 192.168.1.1
I can make telnet smtp in both directions.
Where can i fins the logs?
Regards
|
|
|
10-07-2006, 02:52 AM
|
#5
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
Check /var/log/. You can also look in /etc/syslog.conf to see where mail goes.
|
|
|
10-09-2006, 02:46 AM
|
#6
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
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
|
|
|
10-09-2006, 05:24 AM
|
#7
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
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
Last edited by Berhanie; 10-09-2006 at 05:26 AM.
|
|
|
10-09-2006, 06:06 AM
|
#8
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
The same. using "my-domain.com" does nothing...
|
|
|
10-09-2006, 10:39 AM
|
#9
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
Are you sure there is mail waiting in queue (see output of mailq)?
|
|
|
10-09-2006, 10:40 AM
|
#10
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
using webmin, there's an addon that can see user's mailboxes and two users have mail at /var/spool/mail (sendmail)
|
|
|
10-09-2006, 07:47 PM
|
#11
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
Mail in users' mailboxes has already been delivered. It's not queued. ETRN released queued mail.
|
|
|
10-10-2006, 01:49 AM
|
#12
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
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?
|
|
|
10-10-2006, 08:19 AM
|
#13
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
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.
|
|
|
10-11-2006, 08:43 AM
|
#14
|
Member
Registered: May 2006
Posts: 59
Original Poster
Rep:
|
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!
|
|
|
10-11-2006, 10:19 AM
|
#15
|
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625
Rep:
|
You're welcome, novis. I'm happy to hear that you solved your problem.
|
|
|
All times are GMT -5. The time now is 07:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|