>
> Men for at komme videre skal jeg nu vide følgende:
> -- vil du bruge PostfixEnabler igen
Det var ikke planen
> -- er det nødvendigt at bruge SASL
Det må jeg lige læse på, jeg er ikke helt med og kun en Unix nybegynder
> -- hvordan plejer du at rode rundt med main.cf
Jeg fulgte denne vejledning da jeg fik det til at virke i sin tid:
un you own Mac OS X v10.3 (Panther) Mail server in 5 minutes!
Send your e-mails with MaxBulk Mailer twice as fast bypassing your local
ISP SMTP server...
This document is based on stepwise.com article by Graham Orndorff
http://www.stepwise.com/Articles/Workbench/eart.index.html - Copyright
2001 Graham Orndorff
Mac OS X v10.3 (Panther) is shipped with a built-in mail server that
comes deactivated by default. This mail server, named "Postfix" is a
high-performance UNIX SMTP (Simple Mail Transfer Protocol) server.
Postfix can be setup in less than 5 minutes and can make your MaxBulk
e-mails deliveries up as twice as fast. Furthermore you will no longer
need to use your ISP server, no more authentication, no more mails per
session limit... Postfix, as a full SMTP server, will deliver all your
e-mails directly to the recipients mailboxes.
The good news: once your Mail server's running, you will be able to set
any mail application to use it. This will boost all your day to day mail
deliveries.
Note: At the time of writing, Mac OS 10.3 ships with 2.0.10 release of
Postfix. This document assumes the reader is reasonably competent with
unix, and has administrative rights on the system in question.
Table of Contents
1-. What is Postfix, and why should I use it?
2.- Enabling Postfix
3.- Troubleshooting
4.- Restarting Postfix
5.- How to set MaxBulk Mailer to use Postfix?
6.- Legal Disclaimer
1-. What is Postfix, and why should I use it?
Postfix is the built-in mail server on Mac OS X v10.3 (Panther). It is
bundled with many Unix operating systems as well. By default, it is
disabled for security purposes, but it can be enabled easily by making a
small modifications. Enabling Postfix allows you to specify "localhost"
as your outgoing mailserver. By enabling Postfix, you'll never have to
change your mailserver settings again. Postfix is also quite fast.
To perform all the requested changes you will need to use the Terminal
utility.
Terminal is located in the Applications/Utilities folder
2.- Enabling Postfix
To enable Postfix, open the Terminal and type
sudo pico /etc/hostconfig
Typing "sudo pico /etc/hostconfig"
Find the line that has "MAILSERVER=-NO-" or "MAILSERVER=-AUTOMATIC-" and
change the "-NO-" or "-AUTOMATIC-" to "-YES-". Note: Control+V to go to
next page and use the arrow keys to go up, down, right and left.
Changing "MAILSERVER=-NO-" to "MAILSERVER=-YES-"
Hit Control+'X', press 'Y' and return to save the changes to the file.
Next step is to create a 'postfix' group and a 'postdrop' account using
following commands:
(Write one command at a time followed by a carriage return)
echo 'postfix:*:23456:postfix' | sudo niload group /
echo 'postdrop :*:23457:' | sudo niload group /
echo 'postfix:*:23456:23456::0:0:Mail:/tmp:/usr/bin/false' | sudo niload
passwd /
Then we set Postfix directories owner with following commands:
(Write one command at a time followed by a carriage return)
sudo chown -R postfix /private/var/spool/postfix
sudo chown :postdrop /private/var/spool/postfix/public
sudo chown :postdrop /private/var/spool/postfix/maildrop
sudo chown :postdrop /usr/sbin/postqueue
sudo chown :postdrop /usr/sbin/postdrop
Next, you must adjust the Postfix configuration opening 'master.cf':
sudo pico /etc/postfix/master.cf
Typing "sudo pico /etc/postfix/master.cf"
Once on the file, go to next page (control+V) and uncoment the first
smtp line:
#smtp inet n - n - - smtpd
this way:
smtp inet n - n - - smtpd
Note: Control+V to go to next page and use the arrow keys to go up,
down, right and left.
Un-commenting line
Hit Control+'X', press 'Y' and return to save the changes to the file.
Next, you must adjust your domain and host name opening 'main.cf':
sudo pico /etc/postfix/main.cf
? Find the lines:
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
and add bellow:
myhostname = your.domain.tld (e.g. stan.maxprog.com)
? Find the line:
#myorigin = $mydomain
Uncomment it so it looks like this:
myorigin = $mydomain
Hit Control+'X', press 'Y' and return to save the changes to the file.
? You can now launch Postfix with:
sudo postfix start
? Restart PostFix with this command:
sudo postfix reload
? To force deliveries to start:
sudo postfix flush
When you restart, Postfix will be active. To use that mailserver, just
set your email client's outgoing mailserver to "localhost" or
"127.0.0.1".
You can verity the server is running by using telnet to connect to port
25 (SMTP): for example..
telnet localhost 25
Checking if Postfix is running with "telnet localhost 25" command
If your connection fails, you need to verify that you have a DNS
hostname for your computer and check for error messages in the
/var/log/mail.log file. The Postfix messages are quite verbose and a
great deal of help with debuggin a faulty installation.
Try sending yourself a test message from a remote computer, Be sure to
specify the destination as the hostname and username used on your Mac OS
X machine.
3.- Troubleshooting
Postfix can cause the startup process to hang. By making a minor
modification to the startup script, you can eliminate this hang. To do
so, open the Terminal and type "sudo pico
/System/Library/StartupItems/Postfix/postfix". Add an ampersand (&)
after the line with the Postfix command.
4.- Restarting Postfix
You can restart Postfix writing the following (in the Terminal):
sudo postfix reload
5.- How to set MaxBulk Mailer to use Postfix?
It is as easy as setting the SMTP host to "localhost" or "127.0.0.1"
(Set 'Account ID' to whatever you like)
In order to use Postfix just set the SMTP host to "localhost" or
"127.0.0.1"
At this point, you are ready to send e-mails as fast as hell bypassing
your local ISP SMTP server and delivering all your e-mails directly to
each recipient mailbox
> -- har du BBEdit installeret
Ja men jeg bruger mest Smultron
~ Anders