Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mail Server problems with Mountain Lion Server

Well, I don't see a section here for Mountain Lion yet so I'll ask here. I installed Mountain Lion Server and for the most part everything is working well. I am have issues with the Mail Server though. As long as I dissable everthing but the Blacklist filter all works fine. If I enable Junk Mail or Virus filters I get this:


postfix/smtp[52062]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused


From doing some serching it seems to have something to do with amavisd but I don't think it is installed on my system. If it is I can't seem to find it. Should it be installed with the Server Software?


I'm really lost here so any help would be great.


Thanks,

Tom

Posted on Aug 20, 2012 4:30 PM

Reply
37 replies

Sep 5, 2012 11:19 AM in response to Mark23

I repaired the Disk Permissions, but it's still the same. Is there something missing? Or what do you think?



[Proces voltooid]

Last login: Wed Sep 5 20:07:46 on console

server:~ delsup$ clear


server:~ delsup$ sudo /bin/launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

Password:

launchctl: Dubious ownership on file (skipping): /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

nothing found to unload

server:~ delsup$ sudo /bin/launchctl load -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

launchctl: Dubious ownership on file (skipping): /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

nothing found to load

server:~ delsup$ sudo more /Library/Logs/Mail/amavis.log

/Library/Logs/Mail/amavis.log: No such file or directory

server:~ delsup$

Sep 5, 2012 11:28 AM in response to clerge

There is no /Library/Logs/Mail


I also tried this:


server:LaunchDaemons delsup$ more org.amavis.amavisd.plist

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Disabled</key>

<true/>

<key>Label</key>

<string>org.amavis.amavisd</string>

<key>OnDemand</key>

<false/>

<key>Program</key>

<string>/Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd</string>

<key>ProgramArguments</key>

<array>

<string>/Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd</string>

<string>-c</string>

<string>/Library/Server/Mail/Config/amavisd/amavisd.conf</string>

</array>

<key>ServiceIPC</key>

<false/>

<key>UserName</key>

<string>_amavisd</string>

</dict>

</plist>

server:LaunchDaemons delsup$

Sep 6, 2012 6:52 AM in response to pterobyte

I have always sent the mails from mail.app (with a pop- and smtp-account of my ML-server) in a workstation that is in the same network as my ML-server to my own ML-account and to other unrelated accounts on external servers (like mobile-me or yahoo). But when i thought it was working, i sent the mail from another account (mobile-me) and than i received the mail in my yahoo-account.


Here are the outputs:


server:/ root# ls -l /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

-rw-r--r-- 1 delsup admin 702 Jul 26 17:51 /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.a mavis.amavisd.plist

server:/ root# ls -l /Library/Logs/Mail

ls: /Library/Logs/Mail: No such file or directory

server:/ root#

Sep 6, 2012 10:14 AM in response to pterobyte

It was a clean install. DNS works, I installed UCC-records (a set of 5), I had Webmail and Wiki worked locally, Mail works too but only with Virus and JunkMail checked off (Blacklist Filter checked on). The server.app was a download from the app-store per 20/8/2012. My Airport was updated by server.app for Message and Websites (but it didn't make the update for the email-services; I can do it manually). It is an Airport Extreme 802.11n of the first generation with OS version 7.6.1.. What TCP-ports (udp-ports) do i have to open in that case?


I only don't have a direct connection to the internet yet. It will come soon. At the moment there are 2 NAT's between the server and the internet. A NAT from my Airport and a NAT from my provider. But the one of my provider will disappear soon, so that my Airport will have directly an internet IP-number. I tried Wiki and Webserver from the zone between the 2 NAT's by surfing to the WAN-IP-address of my Airport. And I could also surf to the internet from the server and workstations behind the second NAT (the one of my Airport).


I could make users. I could make network-users and normal users in server.app. What is the difference between them?


I can make a complete re-install (including Mounain Lion), but do you have propositions for a good workflow-order for the activation of the services?


Can I re-use (or export) the UCC SLL-certificates?


I Could do the complete re-install during this weekend if I might have the above questions answered. And if you have some more tips, they are welcome.


I'm extremely grateful that i have such a support from you.

Thank you very very much.

Sep 6, 2012 10:52 AM in response to clerge

OK, let's see if you can avoid re-installing for time being.


Stop mail services using Server.app

Close Server.app

Open Terminal and issue:

sudo chown root:wheel /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.amavis.amavisd.plist
sudo mkdir -p /Library/Logs/Mail
sudo chown root:admin /Library/Logs/Mail
sudo /bin/launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.amavis.amavisd.plist


Now open Server.app enable virus and junkmail

Using Server.app start mail services

Wait a minute or two and then check if amavisd is running by issuing:

sudo ps U amavisd


If it is now running, you should be set. If not, open Terminal and issue

sudo /bin/launchctl load -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.amavis.amavisd.plist


Now wait a minute and check if amavisd is running by issuing:

sudo ps U amavisd


If it is now running, you should be set. If not, check the aforementioned system.log and amavisd.log (hopefully amavisd.log is now there) for clues.


HTH,

Alex

Sep 7, 2012 4:36 AM in response to pterobyte

YES Thank you very very much Alex,


I sent the mail from the right workstation and received the mails everywhere, just like it has to be.


I had to do the load in Terminal too and than I became this:

server:~ delsup$ sudo ps U amavisd

PID TT STAT TIME COMMAND

16194 ?? Ss 0:04.65 /Applications/Server.app/Contents/ServerRoot/usr/sbin/clamd

16983 ?? Ss 0:02.20 /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd (master)

16984 ?? S 0:00.01 /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd (virgin child)

16985 ?? S 0:00.01 /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd (virgin child)

server:~ delsup$


I suppose that's the right reply in Terminal, since my mails are working now with Virus and JunkMail checked on.


Now I can try out the rest. And than testing all things when my Airport is directly connected to the internet. Maybe you have some more suggestions for me, but I think I can work further. I'm very thankful.


Many thanks, I won't forget you helping me so friendly.

Nov 15, 2012 7:23 AM in response to thomasfromclover

Hello everyone,


Since this morning, the amavisd was not working on my server, i follow your posts but nothnig change.


So, i will tell about my story 🙂


when i was reading the amavis log, the only thing was :


Nov 15 00:30:24 ishtar newsyslog[88530]: logfile turned over


strange 😟


I tried to find where was the bin folder then, i tried to lunch with the comand debug

cd /Applications/Server.app/Contents/ServerRoot/usr/bin

sudo ./amavisd -d


And i get this error :


Error in config file "/Library/Server/Mail/Config/amavisd/amavisd.conf": Global symbol "@example" requires explicit package name at /Library/Server/Mail/Config/amavisd/amavisd.conf line 119.


At this line on the amavisd.conf i read this


$virus_admin              = "virus-alert@example.com";  # notifications recip.


and 4 lines later i get this


$mailfrom_notify_admin     = "virusalert\@$mydomain";  # notifications sender


So i change "virus-alert@example.com" to "virus-alert\@example.com"


i restart mail and now it's working.


But this really strange that the email address is virus-alert@example.com

If someone can tell me why this email is not in my domain? Or if i can change this with someting like admin@mydomain.com without trouble.

Dec 5, 2012 12:28 AM in response to lepikouze

Been following this thread with a similar problem. I have tried everything and the best error I got since I couldn't get amavisd working at all. Try this error...


cd /Applications/Server.app/Contents/ServerRoot/usr/bin

mail:bin administrator$ sudo ./amavisd -d

Password:

Config file "/etc/amavisd.conf" does not exist, at ./amavisd line 1992.


It shouldn't be looking for a conf file in etc at all. Where do I fix this?

Dec 5, 2012 1:25 AM in response to Michael Kennard2

Hello Michael,


This is what you nedd to do :


Open with MORE or VI /Applications/Server.app/Contents/ServerRoot/usr/bin/amavisd


And go to the line 15639


At this line you must have


push(@config_files, '/etc/amavisd.conf')  if !@config_files;


Comment this line and add this just under

push(@config_files, '/Library/Server/Mail/Config/amavisd/amavisd.conf')  if !@config_files;


Save exit and retry ./amavisd -d


Watch the log of amavisd in console, to see if you have other problem.


Maybe you will have to edit your amavisd.conf like my old post.

Mail Server problems with Mountain Lion Server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.