1. Edit the MAILSERVER=-NO- line in /etc/hostconfig. Change it to read MAILSERVER=-YES- or -AUTO-. Save and exit the file.
2. Open up /etc/postfix/main.cf, and edit these lines to reflect your setup. These are examples from my setup; yours might be different.
â LINE 67: myhostname = pb.ljs-world.com
â LINE 75: mydomain = ljs-world.com
â LINE 91: myorigin = $mydomain
â LINE 105: inet_interfaces = all
â LINE 152: mydestination = $myhostname, localhost.$mydomain
â LINE 239: mynetworks_style = subnet
â LINE 253: mynetworks = 192.168.0.0/23, 127.0.0.0/8
Save your work, and exit the file.
3. Open up /etc/postfix/master.cf, and uncomment line 77 -- change #smtp inet n - n - - smtpd to smtp inet n - n - - smtpd. Save and exit the file.
After a reboot or a postfix (re)start, the postfix MTA will be running. (sudo start postfix)
____ Then in cron, add a line like MAILTO="[EMAIL PROTECTED]"
This will also allow you to use localhost as a SMTP, but some ISP's mail server won't accept your email for fear you are a spammer.
You could put a relay line in /etc/postfix/main.cf that will help.
relayhost = smtp.yourisp.com
..lj
On Feb 16, 2005, at 08:09, David Lowe wrote:
I'm generally happy with Mail.app, but i do want to enable localhost mail such as from crontab. Is postfix the only/best way to achieve that?
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Fink-beginners mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-beginners
