[exim] Почтовые ящики для виртуальных хостов




Ситуация такая: имеется exim4 на debain5, настроен, т.е. отправляет/принимает почту с/на = localhost. Прописан, на него почта тоже доставляется, но складывается в папку /var/mail/mail (для Почту отправлял с gmail (для точной рабочести =)

Теперь, внимание, вопрос знатокам: как сделать складывание почты с в www/

Читал про алиасы, вроде не оно. Читал про виртуальные хосты, вроде тоже не оно. Или оно, но гугл молчит по поводу расфасовки в разные папки.

Выручайте, пожалуйста!

расфасовкой занимается LDA

dimon555 ★★★★★
Ответ на: комментарий от undertaker

А какой именно? Их же 50 штук там. Вот conf.d/main/02_exim4-config_options

MAIN_ACL_CHECK_MAIL = acl_check_mail
acl_smtp_mail = MAIN_ACL_CHECK_MAIL

# Defines the access control list that is run when an
# SMTP RCPT command is received.
MAIN_ACL_CHECK_RCPT = acl_check_rcpt
acl_smtp_rcpt = MAIN_ACL_CHECK_RCPT

# Defines the access control list that is run when an
# SMTP DATA command is received.
MAIN_ACL_CHECK_DATA = acl_check_data
acl_smtp_data = MAIN_ACL_CHECK_DATA

# Message size limit. The default (used when MESSAGE_SIZE_LIMIT
# is unset) is 50 MB
message_size_limit = MESSAGE_SIZE_LIMIT

# If you are running exim4-daemon-heavy or a custom version of Exim that
# was compiled with the content-scanning extension, you can cause incoming
# messages to be automatically scanned for viruses. You have to modify the
# configuration in two places to set this up. The first of them is here,
# where you define the interface to your scanner. This example is typical
# for ClamAV; see the manual for details of what to set for other virus
# scanners. The second modification is in the acl_check_data access
# control list.

# av_scanner = clamd:/tmp/clamd

# For spam scanning, there is a similar option that defines the interface to
# SpamAssassin. You do not need to set this if you are using the default, which
# is shown in this commented example. As for virus scanning, you must also
# modify the acl_check_data access control list to enable spam scanning.

# spamd_address = 783

# Domain used to qualify unqualified recipient addresses
# If this option is not set, the qualify_domain value is used.
# qualify_recipient = <value of qualify_domain>

# Allow Exim to recognize addresses of the form «user@[]»,
# where the domain part is a «domain literal» (an IP address) instead
# of a named domain. The RFCs require this facility, but it is disabled
# in the default config since it is seldomly used and frequently abused.
# Domain literal support also needs a special router, which is automatically
# enabled if you use the enable macro MAIN_ALLOW_DOMAIN_LITERALS.
# Additionally, you might want to make your local IP addresses (or @[])
# local domains.

# Do a reverse DNS lookup on all incoming IP calls, in order to get the
# true host name. If you feel this is too expensive, the networks for
# which a lookup is done can be listed here.
.ifndef DC_minimaldns
host_lookup = MAIN_HOST_LOOKUP

# In a minimaldns setup, update-exim4.conf guesses the hostname and
# dumps it here to avoid DNS lookups being done at Exim run time.

# The settings below, which are actually the same as the defaults in the
# code, cause Exim to make RFC 1413 (ident) callbacks for all incoming SMTP
# calls. You can limit the hosts to which these calls are made, and/or change
# the timeout that is used. If you set the timeout to zero, all RFC 1413 calls
# are disabled. RFC 1413 calls are cheap and can provide useful information
# for tracing problem messages, but some hosts and firewalls are
# misconfigured to drop the requests instead of either answering or
# rejecting them. This can result in a timeout instead of an immediate refused
# connection, leading to delays on starting up SMTP sessions. (The default was
# reduced from 30s to 5s for release 4.61.)
# rfc1413_hosts = *
# rfc1413_query_timeout = 5s

# When using an external relay tester (such as and/or the
# currently defunct, the test may be aborted
# since exim complains about «too many nonmail commands». If you want
# the test to complete, add the host from where «your» relay tester
# connects from to the MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS macro.
# Please note that a non-empty setting may cause extra DNS lookups to
# happen, which is the reason why this option is commented out in the
# default settings.
smtp_accept_max_nonmail_hosts = MAIN_SMTP_ACCEPT_MAX_NOMAIL_HOSTS

# By default, exim forces a Sender: header containing the local
# account name at the local host name in all locally submitted messages [...]
local_from_check = false
local_sender_retain = true
untrusted_set_sender = *

# By default, Exim expects all envelope addresses to be fully qualified, that
# is, they must contain both a local part and a domain. Configure exim
# to accept unqualified addresses from certain hosts. When this is done,
# unqualified addresses are qualified using the settings of qualify_domain
# and/or qualify_recipient (see above).
# sender_unqualified_hosts = <unset>
# recipient_unqualified_hosts = <unset>

# Configure Exim to support the «percent hack» for certain domains.
# The «percent hack» is the feature by which mail addressed to x%y@z
# (where z is one of the domains listed) is locally rerouted to x@y
# and sent on. If z is not one of the «percent hack» domains, x%y is
# treated as an ordinary local part. The percent hack is rarely needed
# nowadays but frequently abused. You should not enable it unless you
# are sure that you really need it.
# percent_hack_domains = <unset>

# Bounce handling
ignore_bounce_errors_after = MAIN_IGNORE_BOUNCE_ERRORS_AFTER

timeout_frozen_after = MAIN_TIMEOUT_FROZEN_AFTER

MAIN_FREEZE_TELL = postmaster
freeze_tell = MAIN_FREEZE_TELL

# Define spool directory
.ifndef SPOOLDIR
SPOOLDIR = /var/spool/exim4
spool_directory = SPOOLDIR

# trusted users can set envelope-from to arbitrary values
trusted_users = MAIN_TRUSTED_USERS
trusted_groups = MAIN_TRUSTED_GROUPS

# users in admin group can do many other things
# admin_groups = <unset>

# SMTP Banner. The example includes the Debian version in the SMTP dialog
# MAIN_SMTP_BANNER = «${primary_hostname} ESMTP Exim ${version_number} (Debian package MAIN_PACKAGE_VERSION) ${tod_full}»
# smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full

() автор топика
Ответ на: комментарий от NiggasLife

А, Debian. При всём уважении, модульные конфиги Exim-а в Debian не очень удобны для понимания. Тебе нужен раздел, начинающийся с begin transports, ну и транспорт с драйвером appendfile, если ты не используешь LDA. В нём можно указывать переменные вида $domain, etc. В общем, почитай про транспорты.

undertaker ★★
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.