Many thanks, looks like the mail server backup is operational. The first two pieces of incoming mail after the fix were spam to invalid addresses at the domain, but they were properly queued by the backup server in mqueue. Anything special about getting the mail out when my home DSL (and server) come back up in a few days. I was thinking of possibly moving the queued mail to a temporary directory a few times a day to cut down on needless retries before the DSL is restored. Any thoughts? Dick At 03:57 PM 10/2/2003 -0400, you wrote:
sorry,
the local-host-names file should be empty.. only the access file should have RELAY.
it is trying to recive mail on your host, but the accounts dont exist on that box.
On Thu, 2 Oct 2003, Richard Goodman wrote:
After 1-1/2 hours studying Oreilly/Sendmail & Oreilly/DNS&Bind, I stumbled upon the correct format for my MX records ... turns out they were all wrong on a dozen domains on four servers.
Now I have a new problem ... with the MX records working, the backup server is starting to receive mail, but rejecting it all for "Unknown user" ... I thought the mail was to be queued for redelivery, not attempted to deliver to mailboxes on the backup server. What have I done wrong NOW?
Dick
At 02:04 PM 10/2/2003 -0400, you wrote:
you got 0 answer for your MX. your DNS is misconfigured.
dig -t mx domain.com
should in your case display at least 2 answers. your main server, and your backup server
for example: dig -t mx wlug.org
; <<>> DiG 9.2.1 <<>> -t mx wlug.org ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63144 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 0
;; QUESTION SECTION: ;wlug.org. IN MX
;; ANSWER SECTION: wlug.org. 259200 IN MX 20 mx.WPI.EDU. wlug.org. 259200 IN MX 10 smtp.WPI.EDU.
;; AUTHORITY SECTION: wlug.org. 259200 IN NS ns1.wlug.org. wlug.org. 259200 IN NS alum.WPI.EDU. wlug.org. 259200 IN NS dns1.dovetailinternet.net.
;; Query time: 110 msec ;; SERVER: 192.168.2.48#53(192.168.2.48) ;; WHEN: Thu Oct 2 14:02:48 2003 ;; MSG SIZE rcvd: 149
You might need to set your secondary DNS to be a master for your domain. remember to restart the named.
On Thu, 2 Oct 2003, Richard Goodman wrote:
; <<>> DiG 9.2.1 <<>> -t MX mydomain.net ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3412 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;mydomain.net. IN MX
;; AUTHORITY SECTION: mydomain.net. 2924 IN SOA mydomain.net. rlg.bach.mydomain. net. 2003100202 10800 3600 604800 3600
;; Query time: 7 msec ;; SERVER: 67.100.202.xxx#53(67.100.202.xxx) ;; WHEN: Thu Oct 2 13:47:15 2003 ;; MSG SIZE rcvd: 75
I'd already gotten that output but didn't see any MX output, just the question. Your interpretation? Further suggestions? I'm losing mail at this point, but would like to stop the hemorraging. The SOA serial# indicates it is the most recent version of the modified (secondary) DNS
Dick
At 01:37 PM 10/2/2003 -0400, you wrote:
do a: dig -t MX domain.com
should show you if the DNS is reporting the backup mail sever correctly.
On Thu, 2 Oct 2003, Richard Goodman wrote:
Karl, That was exactly what I was looking for. Did the local-host-names changes; I already had the RELAY lines in access on the backup machine. Since the primary DNS is on the down IP address, I modified the secondary (slave) DNS which is one of my office boxes by adding a second MX line:
my-host MX 99 temp.server.domain. <--dot at end and restarted that named.
Its been quite a while and I'm not seeing any mail queueing, and I know there's mail that should be coming in on a regular basis. What else might I have missed?
What can I use (nslookup, dig ? with what parameters) to see whether the MX lines are right? When I send a test email from an off-site machine, the sending sendmail log says "Connection timed out" and shows the down IP address.
Dick
At 03:52 PM 10/1/2003 -0400, you wrote:
>on the backup RH mail box: >add you domain to the backup /etc/mail/local-host-names and set it >to relay in /etc/mail/access > >type make in the /etc/mail/ directory and restart sendmail. > >you can try testing it. send mail to your domian. also, could telnet >to mailserver.com 25 and put SMTP comands to verify it is accepting >mail for that domain. > >when it is buffering the mail, it should show up in /var/spool/mail > >if your home DSL is going to be down for some time, you might just >want to bring the box into the office, and point the DNS directly at >it, if you can. > > >On Wed, 1 Oct 2003, Richard Goodman wrote: > > > My home DSL has been down for over 48 hours and it appears that it will be > > down for several more days. (I spare you the gory details). I am concerned > > about losing mail coming into various domains at that site. > > That RH 7.3 machine runs mail/web/primary DNS for those domains. > > > > I have modified the secondary DNS records for those domains (on a machine > > at my office - also on DSL) with an higher cost MX record pointing to a > > machine at the office also running RH 7.3 and sendmail, which I assume > will > > pick up and queue the mail. The DNS TTLs are reasonably short, fortunately. > > > > I've done this following O'Reilly/Sendmail book 2nd edition, but its not > > always crystal clear if you don't already understand it! Is there > anything > > else I have to do on the backup machine (pointed to by the new MX > records), > > particularly is there anything I have to do to its sendmail config files? > > > > Any other pointers or "gotcha"s to this whole process? > > > > Dick
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
--
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 http://karl.hiramoto.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
People are always available for work in the past tense.
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
--
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 http://karl.hiramoto.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
Beggar to well-dressed businessman: "Could you spare $20.95 for a fifth of Chivas?"
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug