[Postfixbuch-users] mail_spool_directory

Kai Fürstenberg postfix at fuerstenberg.ws
Do Jul 6 11:44:48 CEST 2006


Andreas Ernst wrote:
> Hallo Kai,
> 
> Kai Fürstenberg wrote:
>> Hallo Andreas,
>>
>> Andreas Ernst wrote:
>>   
>>> Moin,
>>>
>>> ich muß einen 2 Postfix/POP3 Server ( Postfix 2.2.6 ) aufsetzen, mit  
>>> identischen Nutzern, die sich ein Share teilen, auf dem das Postfach 
>>> liegt (SLES 9 SP 2).
>>>
>>> Postfix nimmt aber immer das Home-Verzeichnis, statt dem angegebenen. 
>>> Ich habe im Archiv Dinge mit procmail gefunden, gehe aber davon aus, das 
>>> ich dafür noch ein File im User-Verzeichnis brauche.
>>>
>>> Unterstützt Postfix dies, oder welche Einstellung fehlt noch?
>>>
>>> server:/home/contract # postconf -n
>>> alias_maps = hash:/etc/aliases
>>> canonical_maps = hash:/etc/postfix/canonical
>>> command_directory = /usr/sbin
>>> config_directory = /etc/postfix
>>> content_filter =
>>> daemon_directory = /usr/lib/postfix
>>> debug_peer_level = 10
>>> defer_transports =
>>> disable_dns_lookups = no
>>> home_mailbox = Maildir/
>>> html_directory = /usr/share/doc/packages/postfix/html
>>> inet_interfaces = all
>>> mail_owner = postfix
>>> mail_spool_directory = /opt/pop3/
>>> mailbox_command =
>>> mailbox_transport =
>>> mailq_path = /usr/bin/mailq
>>> manpage_directory = /usr/share/man
>>> masquerade_classes = envelope_sender, header_sender, header_recipient
>>> masquerade_domains =
>>> masquerade_exceptions = root
>>> mydestination = $myhostname, localhost.$mydomain
>>> mydomain = example.com
>>> myhostname = server.example.com
>>> mynetworks = [Netze], 127.0.0.0/8
>>> newaliases_path = /usr/bin/newaliases
>>> queue_directory = /var/spool/postfix
>>> readme_directory = /usr/share/doc/packages/postfix/README_FILES
>>> relayhost =
>>> relocated_maps = hash:/etc/postfix/relocated
>>> sample_directory = /usr/share/doc/packages/postfix/samples
>>> sender_canonical_maps = hash:/etc/postfix/sender_canonical
>>> sendmail_path = /usr/sbin/sendmail
>>> setgid_group = maildrop
>>> smtpd_banner = $myhostname ESMTP
>>> smtpd_client_restrictions =
>>> smtpd_helo_required = yes
>>> smtpd_helo_restrictions =
>>> smtpd_recipient_restrictions = permit_mynetworks,        
>>> reject_unauth_destination,        reject_unauth_pipelining
>>> smtpd_sender_restrictions = hash:/etc/postfix/access
>>> strict_rfc821_envelopes = no
>>> transport_maps = hash:/etc/postfix/transport
>>>
>>>
>>> Grüße
>>> Andreas
>>>
>>>     
>> Könnte das die Lösung sein?
>> home_mailbox (default: empty)
>>      Optional pathname of a mailbox file relative to a local(8) user's 
>> home directory.
>>
>> insbesondere das "relative to a local(8) user's home directory".
>>
>> Kai
>>   
> Das ist ja genau das, was ich nicht will, deswegen
> 
> mail_spool_directory = /opt/pop3/
> 
> 
> damit Postfix die Mail dort hin schiebt und nicht ins User-Home. Und da 
> halt die Frage geht dies mit Bordmitteln von Postfix oder brauche ich 
> über mail_command procmail, dies bedeutet, ich mußte noch eine Datei im 
> User-Home anlegen, das auf das Verzeichnis zeigt. (IIRC)
> 
> Grüße
> Andreas
> 

Gemeint war etwas in der Richtung
home_mailbox = ../../opt/pop3/
oder so (wegen "_relative_ to a [..] user's home directory").

Home_mailbox hat eine höhere Priorität als mail_spool_directory.
Daher geht die Mail nach ~/Maildir/. Lass home_mailbox einfach leer.

Gruß Kai



Mehr Informationen über die Mailingliste Postfixbuch-users