Подскажите пожалуйста, что я делаю не так или возможно я что-то напул в конфиге.
Авторизация на сервере проходит нормально.
На время теста порты на сервере все открыты.
Вообщем почта не приходит на сервер, тоесть письма не видны.
оптавлял с яндекс , гугла, маил.
Отлуп на них не приходит значит mx запись правильная.
И вот что редирект почты работает, не получается сделать хранения почты.
postfix собран так.
Код: Выделить всё
# make showconfig
===> The following configuration options are available for postfix-2.9.5,1:
BDB=off: Berkeley DB (uses WITH_BDB_VER)
CDB=off: CDB maps lookups
INST_BASE=off: Install into /usr and /etc/postfix
LDAP_SASL=off: OpenLDAP client-to-server SASL auth
MYSQL=off: MySQL maps (uses WITH_MYSQL_VER)
NIS=off: NIS maps lookups
OPENLDAP=off: OpenLDAP maps (uses WITH_OPENLDAP_VER)
PCRE=on: Perl Compatible Regular Expressions
PGSQL=off: PostgreSQL maps (uses DEFAULT_PGSQL_VER)
SASL2=on: Cyrus SASLv2 (Simple Auth. and Sec. Layer)
SPF=off: SPF support (via libspf2 1.2.x)
SQLITE=off: SQLite maps
TEST=off: SMTP/LMTP test server and generator
TLS=on: SSL and TLS support
VDA=off: VDA (Virtual Delivery Agent 32Bit)
====> Options available for the radio RG1: you can only select none or one of them
DOVECOT=on: Dovecot 1.x SASL authentication method
DOVECOT2=off: Dovecot 2.x SASL authentication method
====> Options available for the radio RG2: you can only select none or one of them
SASLKRB5=off: If your SASL req. Kerberos5, select this
SASLKMIT=off: If your SASL req. MIT Kerberos5, select this
===> Use 'make config' to modify these settings
Код: Выделить всё
# make showconfig
===> The following configuration options are available for dovecot-1.2.17:
KQUEUE=on: kqueue(2) support
SSL=on: SSL support
MANAGESIEVE=on: ManageSieve support
GSSAPI=off: GSSAPI support
VPOPMAIL=off: VPopMail support
BDB=off: BerkleyDB support
LDAP=off: OpenLDAP support
PGSQL=off: PostgreSQL support
MYSQL=on: MySQL support
SQLITE=off: SQLite support
===> Use 'make config' to modify these settings
Код: Выделить всё
protocols = pop3 pop3s
ssl_cert_file = /etc/ssl/dovecot/cert.pem
ssl_key_file = /etc/ssl/dovecot/key.pem
mail_location = maildir:/var/spool/mail/%d/%n
disable_plaintext_auth = no
log_path = /var/log/dovecot
mail_debug = yes
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
dotlock_use_excl = yes
verbose_proctitle = yes
mail_uid = 5000
mail_gid = 5000
mail_privileged_group = virtual
maildir_copy_with_hardlinks = yes
#
protocol imap {
imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
auth_username_format = %Lu
auth default {
mechanisms = plain login cram-md5 digest-md5
userdb passwd-file {
args = /usr/local/etc/dovecot/users
}
passdb passwd-file {
args = /usr/local/etc/dovecot/passwd
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = virtual
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
Код: Выделить всё
biff = no
append_dot_mydomain = no
readme_directory = no
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mail_owner = postfix
#unknown_local_recipient_reject_code = 550
myhostname = mail.dom.net
mydomain = dom.net
myorigin = $mydomain
mydestination = $myhostname, localhost,$mydomain
mynetworks = 127.0.0.0/8
#recipient_delimiter = +
#inet_interfaces = all
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
virtual_mailbox_domains = dom.net
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_limit=310000000
mail_spool_directory = /var/spool/mail
relay_domains = $mydestination, $virtual_mailbox_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_pipelining,permit
smtpd_helo_restrictions = permit
smtpd_sender_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unverified_sender,permit
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_recipient,reject_unauth_destination,reject_unknown_recipient_domain,reject_unverified_recipient,permit
smtpd_data_restrictions = permit
smtpd_end_of_data_restrictions = permit
smtpd_etrn_restrictions = permit
smtp_use_tls = no
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /etc/ssl/dovecot/key.pem
smtpd_tls_cert_file = /etc/ssl/dovecot/cert.pem
smtpd_tls_session_cache_database = btree:/usr/local/etc/postfix/tls_smtpd_scache
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
Код: Выделить всё
/usr/local/etc/postfix/vmailbox
lin@dom.net dom.net/lin/
Код: Выделить всё
# ls -al /var/spool/mail/
drwxrwxrwx 6 virtual virtual 512 Apr 15 14:54 dom.net
Код: Выделить всё
# ls -al /var/spool/mail/dom.net/lin
total 16
drwx------ 5 virtual virtual 512 Apr 15 14:55 .
drwxrwxrwx 6 virtual virtual 512 Apr 15 14:54 ..
drwx------ 2 virtual virtual 512 Apr 15 14:54 cur
-rw------- 1 virtual virtual 17 Apr 15 14:55 dovecot-uidlist
-rw------- 1 virtual virtual 8 Apr 15 14:54 dovecot-uidvalidity
-rw------- 1 virtual virtual 0 Apr 15 14:54 dovecot-uidvalidity.516c14a9
-rw------- 1 virtual virtual 248 Apr 15 14:55 dovecot.index.log
drwx------ 2 virtual virtual 512 Apr 15 14:54 new
drwx------ 2 virtual virtual 512 Apr 15 14:54 tmp
Apr 15 15:09:00 dom_net postfix/smtpd[95302]: connect from mail-ie0-f173.google.com[89.5.103.73]
Apr 15 15:09:01 dom_net postfix/smtpd[95302]: Anonymous TLS connection established from mail-ie0-f173.google.com[89.5.103.73]: TLSv1 with cipher RC4-SHA (128/128 bits)
Apr 15 15:09:01 dom_net postfix/smtpd[95302]: NOQUEUE: reject: RCPT from mail-ie0-f173.google.com[89.5.103.73]: 450 4.1.1 <lin@dom.net>: Recipient address rejected: unverified address: unknown user: "lin"; from=<user@gmail.com> to=<lin@dom.net> proto=ESMTP helo=<mail-ie0-f173.google.com>
Apr 15 15:09:01 dom_net postfix/smtpd[95302]: disconnect from mail-ie0-f173.google.com[89.5.103.73]