Martin2684

Q: Mountain Lion Server reject outgoing mail after upgrade

hi guys,

 

yesterday i upgraded my working Lion Server to Mountain Lion Server...

 

....today I can`t send Emails out. where is the Problem?? 

I hope anyone can Help me *goingcrazy* ^^ Sorry for my bad english... my german is better

 

greetz Martin 

 

here is my postconf - n output:

 

 

alias_maps = hash:/etc/aliases

biff = no

command_directory = /usr/sbin

config_directory = /Library/Server/Mail/Config/postfix

content_filter = smtp-amavis:[127.0.0.1]:10024

daemon_directory = /usr/libexec/postfix

data_directory = /Library/Server/Mail/Data/mta

debug_peer_level = 2

debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5

dovecot_destination_recipient_limit = 1

enable_server_options = yes

header_checks = pcre:/etc/postfix/custom_header_checks

html_directory = /usr/share/doc/postfix/html

imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred

inet_interfaces = all

inet_protocols = all

local_recipient_maps =

mail_owner = _postfix

mailbox_size_limit = 0

mailbox_transport = dovecot

mailq_path = /usr/bin/mailq

manpage_directory = /usr/share/man

maps_rbl_domains =

message_size_limit = 52428800

mydestination = $myhostname, localhost.$mydomain, XXX.de

mydomain = mail.XXXX.de

mydomain_fallback = localhost

myhostname = XXXX.de

mynetworks = 127.0.0.0/8, [::1]/128

newaliases_path = /usr/bin/newaliases

owner_request_special = no

postscreen_dnsbl_sites = zen.spamhaus.org*2

queue_directory = /Library/Server/Mail/Data/spool

readme_directory = /usr/share/doc/postfix

recipient_canonical_maps = hash:/etc/postfix/system_user_maps

recipient_delimiter = +

relayhost = smtp.XXX.de

sample_directory = /usr/share/doc/postfix/examples

sendmail_path = /usr/sbin/sendmail

setgid_group = _postdrop

smtp_sasl_auth_enable = yes

smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd

smtp_sasl_security_options = noanonymous

smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit

smtpd_enforce_tls = no

smtpd_helo_required = yes

smtpd_helo_restrictions = reject_invalid_helo_hostname

smtpd_pw_server_security_options = cram-md5,gssapi,login,plain

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit

smtpd_sasl_auth_enable = yes

smtpd_tls_CAfile = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.chain.pe m

smtpd_tls_cert_file = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.cert.pem

smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

smtpd_tls_key_file = /etc/certificates/smtp.XXX.de.7D98938F14280E43AD764E5D99795A722DAAC938.key.pem

smtpd_tls_loglevel = 0

smtpd_use_pw_server = yes

smtpd_use_tls = yes

tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 550

use_sacl_cache = yes

virtual_alias_domains = $virtual_alias_maps hash:/etc/postfix/virtual_domains

virtual_alias_maps = $virtual_maps hash:/etc/postfix/virtual_users

postconf: warning: /etc/postfix/main.cf: unused parameter: virus_db_update_enabled=1

OS X Server

Posted on Jul 26, 2012 1:21 PM

Close

Q: Mountain Lion Server reject outgoing mail after upgrade

  • All replies
  • Helpful answers

Previous Page 2
  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 29, 2012 12:25 PM in response to Fred de Gembloux
    Level 1 (9 points)
    Mac OS X
    Jul 29, 2012 12:25 PM in response to Fred de Gembloux

    Hello Fred,

     

    where is the configuration file really stored - or are talking about files? The root directory from my server looks like this:

     

    macmini:/ admin$ ls -l

    total 16037

    drwxrwxr-x+ 39 root  admin     1326 Jul 29 13:08 Applications

    drwxr-xr-x+  7 root  wheel      238 Feb  7 13:07 Groups

    drwxr-xr-x+ 61 root  wheel     2074 Jul 29 11:53 Library

    drwxr-xr-x@  2 root  wheel       68 Jun 20 21:16 Network

    drwxr-xr-x   9 root  admin      306 Jul 29 11:51 Previous System

    drwxr-xr-x   4 root  wheel      136 Nov  6  2011 Shared Items

    drwxr-xr-x+  5 root  wheel      170 Jul 29 11:50 System

    drwxr-xr-x+ 16 root  admin      544 Jul 29 11:46 Users

    drwxrwxrwt@  5 root  admin      170 Jul 29 20:42 Volumes

    drwxr-xr-x@ 39 root  wheel     1326 Jul 29 11:42 bin

    drwxrwxr-t@  2 root  admin       68 Jun 20 21:16 cores

    dr-xr-xr-x   3 root  wheel     4319 Jul 29 13:27 dev

    lrwxr-xr-x@  1 root  wheel       11 Jul 29 11:33 etc -> private/etc

    dr-xr-xr-x   2 root  wheel        1 Jul 29 13:28 home

    -rw-r--r--@  1 root  wheel  8191712 Jun 25 08:00 mach_kernel

    dr-xr-xr-x   2 root  wheel        1 Jul 29 13:28 net

    drwxr-xr-x@  7 root  wheel      238 Jul 29 11:50 private

    drwxr-xr-x@ 62 root  wheel     2108 Jul 29 11:43 sbin

    lrwxr-xr-x@  1 root  wheel       11 Jul 29 11:34 tmp -> private/tmp

    drwxr-xr-x@ 10 root  wheel      340 Jul 29 11:45 usr

    lrwxr-xr-x@  1 root  wheel       11 Jul 29 11:34 var -> private/var

     

    Then I have this:

    macmini:/ admin$ ls -l /Library/Server/Mail/Config/postfix/

    total 928

    -rw-r--r--  1 root  wheel  11942 Jul 29 11:43 LICENSE

    -rw-r--r--  1 root  wheel   1629 Jul 29 11:43 TLS_LICENSE

    -rw-r--r--  1 root  wheel  20876 Jul 29 11:43 access

    -rw-r--r--  1 root  wheel   8829 Jul 29 11:43 aliases

    -rw-r--r--  1 root  wheel   8829 Jul 29 11:43 aliases.desktop

    -rw-r--r--  1 root  wheel   3548 Jul 29 11:43 bounce.cf.default

    -rw-r--r--  1 root  wheel  11681 Jul 29 11:43 canonical

    -rw-r--r--  1 root  wheel     44 Jul 29 11:43 custom_header_checks

    -rw-r--r--  1 root  wheel   9904 Jul 29 11:43 generic

    -rw-r--r--  1 root  wheel  21535 Jul 29 11:43 header_checks

    -rw-r--r--  1 root  wheel  28837 Jul 29 21:09 main.cf

    -rw-r--r--  1 root  wheel  26856 Nov  6  2011 main.cf.default

    -rw-r--r--  1 root  wheel  26856 Jul 29 12:19 main.cf.default.10.8

    -rw-r--r--  1 root  wheel  26970 Jul 29 11:43 main.cf.default~orig

    -rw-r--r--  1 root  wheel  27430 Jul 29 11:43 main.cf~orig

    -rw-r--r--  1 root  wheel   1361 Jul 29 11:43 makedefs.out

    -rw-r--r--  1 root  wheel   8617 Jul 29 21:02 master.cf

    -rw-r--r--  1 root  wheel   7443 Jul 29 11:43 master.cf.default

    -rw-r--r--  1 root  wheel   7443 Jul 29 12:19 master.cf.default.10.8

    -rw-r--r--  1 root  wheel   7443 Jul 29 11:43 master.cf~orig

    -rw-r--r--  1 root  wheel  18473 Jul 29 12:19 postfix-files

    -rw-r--r--  1 root  wheel  18647 Nov  6  2011 postfix-files.prev

    -rw-r--r--  1 root  wheel  18473 Jul 29 11:43 postfix-files~orig

    -rw-r--r--@ 1 root  wheel    128 Jul 29 12:19 rbl_whitelist

    -rw-r--r--  1 root  wheel  16384 Jul 29 12:19 rbl_whitelist.db

    -rw-r--r--  1 root  wheel   6816 Jul 29 11:43 relocated

    -rw-------  1 root  wheel     70 Jul 29 14:43 submit.cred

    -rw-r--r--@ 1 root  wheel    178 Jul 29 12:21 system_user_maps

    -rw-r--r--  1 root  wheel  16384 Jul 29 13:06 system_user_maps.db

    -rw-r--r--  1 root  wheel  12549 Jul 29 11:43 transport

    -rw-r--r--  1 root  wheel  12494 Jul 29 11:43 virtual

    -rw-r--r--  1 root  wheel      0 Jul 29 12:21 virtual_domains

    -rw-r--r--  1 root  wheel  16384 Jul 29 12:21 virtual_domains.db

     

    And I have that too:

    macmini:/ admin$ ls -l /private/etc/postfix/

    total 344

    -rw-r--r--  1 root  wheel  11942 Jul 29 11:43 LICENSE

    -rw-r--r--  1 root  wheel   1629 Jul 29 11:43 TLS_LICENSE

    -rw-r--r--  1 root  wheel  20876 Jul 29 11:43 access

    -rw-r--r--  1 root  wheel   8829 Jul 29 11:43 aliases

    -rw-r--r--  1 root  wheel   8829 Jul 29 11:43 aliases.desktop

    -rw-r--r--  1 root  wheel   3548 Jul 29 11:43 bounce.cf.default

    -rw-r--r--  1 root  wheel  11681 Jul 29 11:43 canonical

    -rw-r--r--  1 root  wheel     44 Jul 29 11:43 custom_header_checks

    -rw-r--r--  1 root  wheel   9904 Jul 29 11:43 generic

    -rw-r--r--  1 root  wheel  21535 Jul 29 11:43 header_checks

    -rw-r--r--  1 root  wheel  28789 Jul 29 21:02 main.cf

    -rw-r--r--  1 root  wheel  26856 Nov  6  2011 main.cf.default

    -rw-r--r--  1 root  wheel  26970 Jul 29 11:43 main.cf.default~orig

    -rw-r--r--  1 root  wheel  27430 Jul 29 11:43 main.cf~orig

    -rw-r--r--  1 root  wheel   1361 Jul 29 11:43 makedefs.out

    -rw-r--r--  1 root  wheel   8528 Jul 29 12:19 master.cf

    -rw-r--r--  1 root  wheel   8528 Mar  5 12:29 master.cf.10.7.4.orig

    -rw-r--r--  1 root  wheel   7443 Jul 29 11:43 master.cf.default

    -rw-r--r--  1 root  wheel   7443 Jul 29 11:43 master.cf~orig

    -rw-r--r--  1 root  wheel  18473 Jul 29 12:19 postfix-files

    -rw-r--r--  1 root  wheel  18647 Nov  6  2011 postfix-files.prev

    -rw-r--r--  1 root  wheel  18473 Jul 29 11:43 postfix-files~orig

    -rw-r--r--  1 root  wheel   6816 Jul 29 11:43 relocated

    drwxr-xr-x  2 root  wheel     68 Jul 29 15:06 sasl

    -rw-r--r--  1 root  wheel  12549 Jul 29 11:43 transport

    -rw-r--r--  1 root  wheel  12494 Jul 29 11:43 virtual

     

     

    So - I have the same file in 2 different locations - and they look exactly the same (as far as I can tell).

     

    You're talking about a path - what path?! What is it supposed to look like - I mean the path?! Can you provide little more detail on that, because I can't follow you at the moment.

  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 29, 2012 12:31 PM in response to JuergenHere
    Level 1 (9 points)
    Mac OS X
    Jul 29, 2012 12:31 PM in response to JuergenHere

    Hi,

     

    this didn't solve my issue

     

    I took a look at TimeMachine and couldn't find this directory, nore a file with that name in the paths mentioned above, in the backups of 10.7.X.

    I looked at:

    /private/etc/postfix/

    /Library/Server/Mail/Config/postfix

     

    So - what is my server missing?

  • by mopedpan,

    mopedpan mopedpan Jul 29, 2012 2:12 PM in response to FlorianLeo
    Level 1 (0 points)
    Jul 29, 2012 2:12 PM in response to FlorianLeo

    Hi FlorianLeo,

     

    IMHO your server does not miss anything ...

     

    Please, look up the main.cf in /Library/Server/Mail/Config/postfix and check where the for smtp_sasl_password_maps and virtual_alias_domains and virtual_alias_maps point to ...

    it has to point to /Library/Server/Mail/Config/postfix

     

    reload postfix and try again, this has solved my problem ...

  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 30, 2012 2:31 AM in response to mopedpan
    Level 1 (9 points)
    Mac OS X
    Jul 30, 2012 2:31 AM in response to mopedpan

    Hello mopedpan,

     

    the main.cf on the server only contains the virtual_alias_maps and it reads like this:

    virtual_alias_maps = $virtual_maps

    What does $virtual_maps mean?

    Shell I add the first 2 variables (since they are not there) you mentioned to main.cf?

  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 30, 2012 4:20 AM in response to mopedpan
    Level 1 (9 points)
    Mac OS X
    Jul 30, 2012 4:20 AM in response to mopedpan
  • by chickenpellet,

    chickenpellet chickenpellet Jul 30, 2012 4:21 AM in response to Martin2684
    Level 1 (0 points)
    Jul 30, 2012 4:21 AM in response to Martin2684

    Hey guys! I am having this same issue - my emails won't send after the upgrade to 10.8, and are getting deleted at the same time. But I'm sorry, I'm not understanding the computer jargon used in this thread! Is there a fix to this problem that an relatively illiterate IT person like me could follow?

  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 30, 2012 5:36 AM in response to chickenpellet
    Level 1 (9 points)
    Mac OS X
    Jul 30, 2012 5:36 AM in response to chickenpellet

    Hey Chickenpellet

     

    trust me - I have as much knowledge of postfix (peace of software that does email on your server) as you have - you have read through a lot of material and spend a lot of thinking, comparing, reading through all kinds of materials again - then again thinking....

     

    Take this URL for example:

    http://www.postfix.org/postconf.5.html

     

    The Logs (use programm Console and use filter in the right top corner: postfix) showed that postfix had an issue with usernames, specifically with aliases - yeah - where is the mentioned, complained about, "aliases.db"?! It's just not in the directories flying around in postings these days. The directories I figured out are:

    • /private/etc/postfix
    • /Library/Server/Mail/Config/postfix

    where the latter is the "one and only" to be used with 10.8 - as I was told.

     

    The same ist true with the cli-programm newaliases - it didn't help at all in my case. The URL above showed me a "new" command "postaliases" followed by the path, which turns out to be:

    /Library/Server/Mail/Config/postfix/aliases - so the whole command is:

    postaliases /Library/Server/Mail/Config/postfix/aliases

     

     

    Resumé:

    I gues you have to dig into - like everybody else did.

    Sorry

  • by chickenpellet,

    chickenpellet chickenpellet Jul 30, 2012 5:53 AM in response to FlorianLeo
    Level 1 (0 points)
    Jul 30, 2012 5:53 AM in response to FlorianLeo

    Hi FlorianLeo,

    Thanks heaps for your reply -

    I got as far as typing 'postfix' into the filter in Console - and it didn't come up with anything.

     

    Anyway, I think this is a bit too complicated for me haha.

     

    Thanks again for trying!

     

    -chickenpellet

  • by FlorianLeo,

    FlorianLeo FlorianLeo Jul 30, 2012 7:30 AM in response to chickenpellet
    Level 1 (9 points)
    Mac OS X
    Jul 30, 2012 7:30 AM in response to chickenpellet

    Hello Chickenpellet,

     

    I ment opening the console.app, make shure that in the navigation-bar left-hand-side the entry at the very top is highlighted. It should sound like "all messages" or so. Only then got to the top right, the filter box, and type postfix.

     

    If your postfix has a problem it will be reporting and you'll see the output.

     

    Bildschirmfoto 2012-07-30 um 16.28.20.png

  • by dingbell,

    dingbell dingbell Aug 1, 2012 12:06 AM in response to FlorianLeo
    Level 1 (0 points)
    Aug 1, 2012 12:06 AM in response to FlorianLeo

    I had the same problem. I resolved by altering the following line in main.cf

     

    virtual_alias_maps = $virtual_maps hash:/Library/Server/Mail/Config/postfix/virtual_users

     

    to

     

    virtual_alias_maps = $virtual_maps hash:/Library/Server/Mail/Config/postfix/virtual_domains

     

    The file virtual_users does not exist in either the old or new postfix directories. However, what a mess: there are numerous references to old and new directories in the configuration files. Looks like it's all been done in rather a hurry.

  • by FlorianLeo,

    FlorianLeo FlorianLeo Aug 1, 2012 2:28 AM in response to dingbell
    Level 1 (9 points)
    Mac OS X
    Aug 1, 2012 2:28 AM in response to dingbell

    The thing with the hurry - I have the very same feeling about it. I am not an Postfix-Pro - I am not even a beginner - but I think I should delve into it, the sooner the better.

    Is it coinsidence that ever since Stevens Dead I see more and more sloppyness arising?

    I have Snow Leo on my Macbooks (fantastic), I got a Lion Macmini-Server (terrible - I've been through **** with it). Since the experience with Lion I will beware to upgrade the SnowLeos to Lion - the same is true with Mountain Lion. I will not upgrade the Macbooks. Not only is there too much Software, I have to rely on, installed, but I have absolutely no interest in fixing things. One of Stevens most famous sentence: "We do not ship junk!" Well people - this is something you should post-it to your screens again, and live by it.

  • by mopedpan,

    mopedpan mopedpan Aug 1, 2012 3:09 AM in response to FlorianLeo
    Level 1 (0 points)
    Aug 1, 2012 3:09 AM in response to FlorianLeo

    Hi florianleo,

     

    You have taken the words right Out of my mouth!!

Previous Page 2