10.3: Enable the postfix Mail Transfer Agent | 34 comments | Create New Account
Click here to return to the '10.3: Enable the postfix Mail Transfer Agent' hint |
The following comments are owned by whoever posted them. This site is not responsible for what they say.
or in a package:
http://www.roadstead.com/weblog/Tutorials/PostfixEnabler.html
---
Hermosa Beach, CA USA
After my posting above I looked at my main.cf and the PostfixEnabler does things differently (shown below). I do have the ability to send mail via localhost, so assume I have Postfix enabled at least for sending. The PostfixEnabler only claims to set up sending. http://www.roadstead.com/weblog/Tutorials/PostfixEnabler.html
---
Hermosa Beach, CA USA
Install an Agent on a Mac OS Device The Atera agent monitors the availability, performance and health of the workstation server, and must be installed on all computers and servers you wish to monitor. This allows Atera to alert you when a critical system or resource is down, degraded, or has reached a predefined threshold parameter. Agent Job Viewer 4.1 for Mac can be downloaded from our website for free. The most popular version among the application users is 4.1. Our built-in antivirus checked this Mac download and rated it as virus free. The application lies within System Tools, more precisely Backup & Restore. This free Mac app was originally designed by BWH Research. Supports Grayscale, RGB, CMYK, CIE Lab and HDR images. Supports Mac OS X 10.5 Leopard and Mac OS X 10.6 Snow Leopard and comes as an Universal Binary. Seamlessly supports your platform transitions. This post provides step by step guide to Install McAfee agent on Mac OS. Though the McAfee KB available for the same, could see some of us struggling to do it. So felt outlining a steps with commands will be helpful. Consider Mac OS version 10.14.3 and McAfee Agent version 5.6.2.
Here's what the Enabler adds to main.cf: I don't see the Enabler made any changes to the master.cf file.
Does the procedure outlined in the original posting do more or does it just do it differently? Any comments on which is better or what the side affects are?
Thank you for the original posting. I prefer the text editing versions of making these changes such as used in the original posting. Many post complex grep Terminal commands that are hard to read.
Punzel Agent Mac Os 11
PS: Waiting for edit postings in this group.---
Hermosa Beach, CA USA
Hermosa Beach, CA USA
You need not to reboot. Type 'sudo Postfix start' in the Terminal. 'sudo Postfix stop' when you want to halt the daemon.
mmm, Don't need to reboot just type in terminal /System/Library/StartupItems/Postfix/Postfix start .
Good tip, I needed to perform the following actions in addition to the ones listed above to make it work. When I first tried launching Postfix I got a bunch of permission errors, as well as an error that the group 'postdrop' did not exist. I'm not sure if this is just because of my particular setup or what, but the following might be useful to others. I created the group 'postdrop' using sharepoints (I find it easier than with netinfo)
I had the change the permissions on all folders in /private/var/spool/postifx to be owned by the user postfix: Then change the group of the 2 folders /private/var/spool/postfix/maildrop and /private/var/spool/postfix/public to 'postdrop' Lastly postfix startup complained if /usr/sbin/postqueue and /usr/sbin/postdrop were not owned by group postdrop: After that postfix starts and stops with no complaint and seems to send out mail perfectly.
Major confusion:
I've been tring to enable postfix and had gotten to a point were it would send mail but to where I have no idea. It wouldn't error out nor would it send it to the mail box requested. So I followed the steps above (original post) and when I hit send for a test mail i had a kernal panic. Any idea how to get this working? Also for a domain can I make something up or use localhost or what? I'm tring to send mail only I can receive it form third party ISP's fine.
I've been tring to enable postfix and had gotten to a point were it would send mail but to where I have no idea. It wouldn't error out nor would it send it to the mail box requested. So I followed the steps above (original post) and when I hit send for a test mail i had a kernal panic. Any idea how to get this working? Also for a domain can I make something up or use localhost or what? I'm tring to send mail only I can receive it form third party ISP's fine.
OK I tried postfix enabler. No Luck. Mail seems to be sent out using localhost but where does it go? No kernal panics… nothing. I did use my Yahoo's mail account smtp server setting for my domain so … who knows. I just need a clue what's going wrong.
The postfix setup will depend on your ISP configuration. For example, I have SBC DSL, and no mail can pass through without authentication. So I must define the relayhost as the sbc server name to get postfix to work. Provide a few more details about your ISP and look to /var/log/mail.log for hints as to the problem and we can help you out.
Thanks for the reply.
I added the missing users and groups as discribed at xlr8yourmac.com this seemed to help but nothing conclusive yet so I looked at the mail log as suggested which did yield some clues. 'server refused mail service (port 25)' is listed A LOT in the log file and it contains hundreds if not thousands of entires. I'm not sure if my companies firewall is blocking the mail or if I have something screwed up.
Thanks for your help
I added the missing users and groups as discribed at xlr8yourmac.com this seemed to help but nothing conclusive yet so I looked at the mail log as suggested which did yield some clues. 'server refused mail service (port 25)' is listed A LOT in the log file and it contains hundreds if not thousands of entires. I'm not sure if my companies firewall is blocking the mail or if I have something screwed up.
Thanks for your help
OK a little more info.
It seems that the outgoing mail is working. I sent mail to my work account from home then logged-in throught the vpn and I received the mail. So it is working. Next question is can my offices firewall block the e-mail, and if so is there a way around this? I know one of my co-workers was using sendmail to use his .mac account at work (sending). Any ideas.
Thanks for the help.
It seems that the outgoing mail is working. I sent mail to my work account from home then logged-in throught the vpn and I received the mail. So it is working. Next question is can my offices firewall block the e-mail, and if so is there a way around this? I know one of my co-workers was using sendmail to use his .mac account at work (sending). Any ideas.
Thanks for the help.
You can configure postfix to forward outgoing mail through a relay by using the relayhost directive in the main.cf file.
Major ISP's usually block the access through port 25... to avoid people bypassing their mail servers...
I also had to fix the permissions before it was able to work.
I'd been hitting my head against a wall for a whole day. I had postfix running fine for sending mail, but i had negelected to edit the master.cf so i couldn't receive anything. Thanks!
Strange. First time I posted this it was added to the wrong hint...If you did the upgrade option of 10.3 (and not archive or clean install) then the postfix user wasn't added to Netinfo. You'll be seeing errors like: follow the instructions at xlr8yourmac to run the create users script that the upgrade didn't run.
I performed an upgrade installation originally of 10.3 and discovered the 'missing users' issue as well. Quite frustrating, I was able to follow some hints posted about installing Postfix (from O'Reily I believe) under Jaguar and in the process recreate the users in Netinfo to make this work... however it is a bit disheartening to see that Apple's upgrade procedure can have such a glaring hole... I imagine that one of the first 'point' updates to 10.3 will fix the 'missing users' issue.
Ugh, my CD didn't have the CreateSystemUsers script. I dug around for it a bit. nothing. I'm getting a friend of mine to email it to me today. Or, I'll have to add the postfix user/group manually. Where did you find info on it?
Referencehttp://docs.info.apple.com/article.html?artnum=25623
Solution
- Shut down the computer by choosing Shut Down from the Apple menu.
- Start up in single-user mode by pressing Command-S during startup.
- At the command prompt, type:
mount -uw /
- Press Return.
- Type:
/Library/Receipts/Essentials.pkg/Contents/Resources/CreateSystemUsers
- Press Return.
- Type:
reboot
- Press Return.
Punzel Agent Mac Os Catalina
If it still doesn't work...I also had to make sure with netinfo manager that the (now created) user 'postfix' get the uid 27 as I 'repaired the authorization' and it still didn't work.
![Punzel agent mac os x Punzel agent mac os x](https://media.springernature.com/lw685/springer-static/image/art%3A10.1186%2Fs13287-017-0767-z/MediaObjects/13287_2017_767_Fig1_HTML.gif)
You can see in /var/spool/postfix that all subfolders are owned by '27' that should be postfix except the subfolder pid owned by root.
Hmmm, CrateSystemUsers simply is nowhere on my filesystem. Odd that the CD I have didn't have it. What I ended up doing was getting a copy of the script from a friend of mine and running that. Postfix works now. :)
Need to comment out second inet_interfaces line at end of main.cf
At the end of the main.cf file I found
# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
# bind to localhost only
#
inet_interfaces = localhost
which was changing the inet_interfaces = all that I had set above. If you have the same, you need to comment out the second inet_interfaces line, otherwise people won't be able to send you mail.
# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
# bind to localhost only
#
inet_interfaces = localhost
which was changing the inet_interfaces = all that I had set above. If you have the same, you need to comment out the second inet_interfaces line, otherwise people won't be able to send you mail.
Need to comment out second inet_interfaces line at end of main.cf
Thank you SOOOO much for publishing both the original hint and the second reference to 'commenting out the second instance of the inet_interface line in the main.cf file. I had been able to easily get Postfix running but I could not for the life of me discover why it was only listening on the localhost interface. I knew it had to be simple!!! It is exactly for this reason that forums like this and sites like MacOSXHints.com are invaluable. Only if more people knew to check here first before pulling their hair out.
Need to comment out second inet_interfaces line at end of main.cf
Hi,
I got the same problem : I can send mail via postfix but I can't receive.
I don't understand your hint 'comment out second inet_interfaces line'
At line 635 at end of main.cf, I got the same as you:
[code]# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
# bind to localhost only
#
inet_interfaces = localhost
[/code]
There is no second line after that command.
But lines 105 to 107 look like this:
[code]
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
[/code]
Should I have to comment out the second line here ?
Thanks
I got the same problem : I can send mail via postfix but I can't receive.
I don't understand your hint 'comment out second inet_interfaces line'
At line 635 at end of main.cf, I got the same as you:
[code]# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
# bind to localhost only
#
inet_interfaces = localhost
[/code]
There is no second line after that command.
But lines 105 to 107 look like this:
[code]
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
[/code]
Should I have to comment out the second line here ?
Thanks
If MAILSERVER is set to AUTOMATIC (which is the default), then postfix-watch runs at startup. Its job is to watch the mail queue and fire up postfix when needed, then kill after a period of inactivity (1 hour, I think). This seems to be the resource conservationist approach, and may help on lower end systems (thanks jkh ;)
I'm a newbie here and need some perspective. I'm trying to set-up a mail server on my locally controlled web servering computer. I've read lots of articles, but nothing which spells out the mail infrastructe clearly. A couple of questions.
1. After setting up Postfix what next?
a. Can I now send out e-mail & receive it?
b. Do I need to set-up Cyrus, UW IMAP, or is there an Apple Mail Server already running? How do I do this?
2. How do I create new e-mail accounts?
3. Can I get AOL mail relayed to my new accounts?
Thanks,
Greg
1. After setting up Postfix what next?
a. Can I now send out e-mail & receive it?
b. Do I need to set-up Cyrus, UW IMAP, or is there an Apple Mail Server already running? How do I do this?
2. How do I create new e-mail accounts?
3. Can I get AOL mail relayed to my new accounts?
Thanks,
Greg
I have a nice TUTORIAL explaining how to set up POSTFIX as an SMTP, I'll do a copy paste here, because i cannot add attachments...
(It's from MaxBulk Software, bear with the advertising...)
------------------
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.
(It's from MaxBulk Software, bear with the advertising...)
------------------
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.
In the version of main.cf that I have on my system apple have 'kindly' added a set of defaults at the bottom of the file. These over-write the 'inet_interfaces' and 'mynetworks_style' values and set them to prevent remote connections. It's worth checking thay if you set any variables that they're not reset within the file at a later point.
You can check the actual running config with
sudo postconf -n
, which is useful for debugging purposes. Also it's sometimes worthwhile doing a sudo postfix stop
followed by a sudo postfix start
rather than a sudo postfix reload
. A reload
doesn't always seem to fix everything.The most important thing is to use valid hostnames in main.cf, in most cases, mailservers on the other side will reject your messages if it can't reach the hostname. Here is how it works:
You added
myhostname = notvalidhost.com
When you send a message myhostname is added to your username and it looks like this
[email protected]
Receiving server checks notvalidhostname.com and returns a message that notvalidhostname.com is unroutable.
I think any valid hostname will work. I use my own, set up at dyndns.org and postfix works without a problem for sending emails via Internet. Using this method can affect local mail delivery though.
Having problems with the mailbox size on your local machine? By default its set to around 50Mb. When you exceed this mail wont be delivered, and you will see messages in mail.log like: You added
myhostname = notvalidhost.com
When you send a message myhostname is added to your username and it looks like this
[email protected]
Receiving server checks notvalidhostname.com and returns a message that notvalidhostname.com is unroutable.
I think any valid hostname will work. I use my own, set up at dyndns.org and postfix works without a problem for sending emails via Internet. Using this method can affect local mail delivery though.
Apr 30 18:42:37 myMac postfix/local[2456]: 47E237DF92: to=, relay=local, delay=0, status=bounced (cannot access mailbox /var/mail/foo for user foo. error writing message: File too large)
Punzel Agent Mac Os Download
The solution: replace NEW_SIZE above with the size you want. 204800000 gives you 200Mb.
I try it but:
Last login: Thu Jul 29 22:47:22 on console
Computer-di-SuperUgo:~ superugo$ sudo postconf -e 'mailbox_size_limit = 204800000'
Password:
Computer-di-SuperUgo:~ superugo$ sudo SystemStarter restart 'SMTP'
Welcome to Macintosh.
Reloading Postfix configuration
postfix/postfix-script: refreshing the Postfix mail system
Startup complete.
Hangup
Computer-di-SuperUgo:~ superugo$
But It don't goes, wy?
thanks a lot
---
Ugo Fonzar - Aquileia (UD) - Italy
Last login: Thu Jul 29 22:47:22 on console
Computer-di-SuperUgo:~ superugo$ sudo postconf -e 'mailbox_size_limit = 204800000'
Password:
Computer-di-SuperUgo:~ superugo$ sudo SystemStarter restart 'SMTP'
Welcome to Macintosh.
Reloading Postfix configuration
postfix/postfix-script: refreshing the Postfix mail system
Startup complete.
Hangup
Computer-di-SuperUgo:~ superugo$
But It don't goes, wy?
thanks a lot
---
Ugo Fonzar - Aquileia (UD) - Italy
sudo postconf -e 'message_size_limit = 204800000'
Password:
sudo SystemStarter restart 'SMTP'
here it is my old problem! :)
---
Ugo Fonzar - Aquileia (UD) - Italy
Open up /etc/postfix/main.cf, and edit these lines to reflect your setup. These are examples from my setup; yours might be different.Password:
sudo SystemStarter restart 'SMTP'
here it is my old problem! :)
---
Ugo Fonzar - Aquileia (UD) - Italy
- LINE 67: myhostname = stibnite.oeyvind.org
- LINE 75: mydomain = oeyvind.org
- 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
The only thing you do have to change in main.cf is the lines:
# THE FOLLOWING DEFAULTS ARE SET BY APPLEComment out both of these lines by inserting a # in column 1 to prevent them overriding the values defined earlier in the file.
#
# bind to localhost only
#
inet_interfaces = localhost
# turn off relaying for local subnet
#
mynetworks_style = host
Punzel Agent Mac Os X
Stop and start postfix and you are in business.David
It's probably not a good idea in general to allow your Mac to relay mail from anyone on your subnet. If one of those machines gets hacked, then it could start sending spam or worse through your Mac.
To prevent this, leave this line enabled:
# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
...
# turn off relaying for local subnet
#
mynetworks_style = host
Postfix will accept messages originating on the same machine for any Internet address. However, it will not accept mail from anywhere else unless the destination is an address on postfix's machine.
David
To prevent this, leave this line enabled:
# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
...
# turn off relaying for local subnet
#
mynetworks_style = host
Postfix will accept messages originating on the same machine for any Internet address. However, it will not accept mail from anywhere else unless the destination is an address on postfix's machine.
David
Does anyone know how to do this in 10.4? Apparently Tiger has no MAILSERVER=-NO- line in /etc/hostconfig, yet it's turned off by default. Strategy to get us all to buy the server OS, maybe? :-(
Under Tiger, Postfix is started using the new launchd service and doesn't require an entry in /etc/hostconfig. Edit the postfix specific files as described in this hint, then make a backup copy of the file /System/Library/LaunchDaemons/org.postfix.master.plist and replace this file with the following: To restart postfix, cd to /System/Library/LaunchDaemons and execute the command: This works on my system, but I'm no expert in launchd, so there may be a better way of doing it.