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? |
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. |
Quote:
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. |
Yep, the ip is 192.168.1.1
I can make telnet smtp in both directions. Where can i fins the logs? Regards |
Check /var/log/. You can also look in /etc/syslog.conf to see where mail goes.
|
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 |
It's not complaining about the syntax (listing an ip address after ETRN). But, according to RFC 1985,
Quote:
Code:
ETRN domain.com |
The same. using "my-domain.com" does nothing...
|
Are you sure there is mail waiting in queue (see output of mailq)?
|
using webmin, there's an addon that can see user's mailboxes and two users have mail at /var/spool/mail (sendmail)
|
Mail in users' mailboxes has already been delivered. It's not queued. ETRN released queued mail.
|
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?
|
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.
|
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! |
You're welcome, novis. I'm happy to hear that you solved your problem.
|
All times are GMT -5. The time now is 04:49 PM. |