Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Make sendmail work from a computer using Airport UNIX
Since upgrading to a TiBook a while ago, my old Lombard has been sitting around. I recently decided to put it to some use as a mail server. Both TiBook and Lombard are connected to the Airport which maintains the internet connection with dynamic IP address. Sendmail had been enabled properly with instructions off the net.

Anyway, the problem that I had was that I could send mails from my TiBook to my Lombard from behind the Airport, but I could not recieve mail from the internet! This implied that sendmail was working (since it permitted outbound emails but not inbound emails). After several days of agnozing, I realized the problem arose because the mail server would assume the Rendezvous address (e.g. 10.0.1.112), and not the address of the mail server (e.g test.ath.cx).

I localized the problem to the following files: hostconfig and boot.rc. To make your sendmail work properly:
  1. Remember to back up your files first. (sudo cp /etc/hostconfig /etc/hostconfig.original; sudo cp /etc/rc.boot /etc/rc.boot.original).

  2. Edit /etc/hostconfig as root: (ie. sudo pico /etc/hostconfig). Under # network configuration, change HOSTNAME=-AUTOMATIC- to HOSTNAME-test.ath.cx- (or whatever your hostname is).

  3. Edit /etc/rc.boot as root: (ie. sudo pico /etc/rc.boot). Under hostname localhost (you will have to scroll down quite a bit or use control-W to search), change localost to the hostname used in the previous step.

  4. Reboot
[robg adds: I haven't tested this one...]
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[3,348 views]  

Make sendmail work from a computer using Airport | 3 comments | Create New Account
Click here to return to the 'Make sendmail work from a computer using Airport' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make sendmail work from a computer using Airport
Authored by: cokery on Oct 10, '03 02:34:40PM

Is all this necessary? I simply use port forwarding on a Graphite Base Station to route port 25 traffic to the server address, and it works well for both incoming and outgoing mail.



[ Reply to This | # ]
Make sendmail work from a computer using Airport
Authored by: lewildbeast on Oct 11, '03 01:12:55AM

I had properly set the port forwarding on my snow base station, but it didn't work until I made the changes as described...

I suppose readers can make the change if simple port forwarding doesn't do the trick...

rgds,

Beast.



[ Reply to This | # ]
Make sendmail work from a computer using Airport
Authored by: Lanir on Oct 15, '03 07:14:15PM

Might be a good idea to use the -w option onto pico when editing config files. Those particular files may not bite you for it but others will. I recall finding this out the hard way a few years back with a linux install. It's not pretty. :)
I -think- you can define the domain in your sendmail config by using this option:

DOMAIN(your.domain.here)dnl

It's been awhile since I looked at this. Instructions on how to alter your sendmail config and make it work can be found in the file /etc/mail/README



[ Reply to This | # ]