#1  
Old 4th February 2011, 06:55
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default Postfix delivery to local

Hello,

I had configure a new server but postfix is delivering all message to a local account. Same issue if I send from outside of the network.

Here is my main.cf file
# --------------- local settings ------------------
mydomain = xxx.net
myhostname = yyy.$mydomain
home_mailbox = Maildir/
mailbox_command =
inet_interfaces = all
alias_maps = hash:/etc/aliases
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
alias_database =
relay_domains = mysql:$config_directory/mysql_relay_domains_maps.cf
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
debug_peer_level = 2
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mailq_path = /usr/bin/mailq
setgid_group = maildrop
mynetworks_style = subnet
mynetworks = 127.0.0.0/8
mydestination = localhost, $myhostname
unknown_local_recipient_reject_code = 550
address_verify_map = btree:/var/lib/postfix/address_verify
inet_protocols = all
biff = no
content_filter = smtp-amavis:[127.0.0.1]:10024
queue_directory = /var/spool/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
# --------------- local settings END --------------

# ---------------------- VIRTUAL DOMAINS END ----------------------
# ---------------------- ADDITIONAL FOR QUOTA SUPPORT -------------
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /var/vmail
#virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = virtual
# ---------------------- ADDITIONAL FOR QUOTA SUPPORT END -----


# ---------------------- SASL PART START ----------------------
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_path = private/auth
# ---------------------- SASL PART END ----------------------


# ---------------------- TLS PART START ----------------------
broken_sasl_auth_clients = yes
tls_random_source = dev:/dev/urandom
smtp_use_tls = yes
smtp_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtp_tls_key_file = /etc/postfix/ssl/smtpd.key
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_note_starttls_offer = yes
smtpd_helo_required = yes
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_received_header = yes
smtpd_tls_ask_ccert = no
smtpd_tls_loglevel = 1
smtpd_tls_auth_only = no
smtpd_tls_session_cache_timeout = 3600s
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
# ---------------------- TLS PART END ----------------------
disable_vrfy_command = yes
non_fqdn_reject_code = 450
invalid_hostname_reject_code = 450
maps_rbl_reject_code = 450
smtpd_recipient_restrictions =
permit_mynetworks
permit_tls_all_clientcerts
permit_sasl_authenticated
reject_unauth_destination
reject_invalid_helo_hostname
reject_non_fqdn_sender
reject_non_fqdn_recipient
reject_unknown_sender_domain
warn_if_reject reject_unverified_sender
reject_unknown_recipient_domain
reject_unverified_recipient
reject_unauth_pipelining
reject_rbl_client multi.uribl.com
reject_rbl_client dul.dnsbl.sorbs.net
reject_rbl_client sbl-xbl.spamhaus.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client ix.dnsbl.manitu.net
reject_rbl_client combined.rbl.msrbl.net
reject_rbl_client rabl.nuclearelephant.com
reject_rbl_client cbl.abuseat.org
reject_rbl_client sbl.spamhaus.org
reject_rbl_client bl.spamcop.net
reject_rbl_client dnsbl.sorbs.net=127.0.0.2
reject_rbl_client dnsbl.sorbs.net=127.0.0.3
reject_rbl_client dnsbl.sorbs.net=127.0.0.4
reject_rbl_client dnsbl.sorbs.net=127.0.0.5
reject_rbl_client dnsbl.sorbs.net=127.0.0.7
reject_rbl_client dnsbl.sorbs.net=127.0.0.9
reject_rbl_client dnsbl.sorbs.net=127.0.0.11
reject_rbl_client dnsbl.sorbs.net=127.0.0.12
warn_if_reject reject_non_fqdn_helo_hostname
warn_if_reject reject_unknown_helo_hostname
warn_if_reject reject_unknown_client
warn_if_reject reject_rhsbl_sender dsn.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender abuse.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender whois.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender bogusmx.rfc-ignorant.org
warn_if_reject reject_rhsbl_sender postmaster.rfc-ignorant.org

smtpd_data_restrictions =
reject_unauth_pipelining,
reject_multi_recipient_bounce,
permit

sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
html_directory = /usr/share/doc/packages/postfix/html
manpage_directory = /usr/share/man


Here is my Dovecot conf...

base_dir = /var/run/dovecot/
protocols = imap imaps
log_timestamp = "%b %d %H:%M:%S "
syslog_facility = mail
disable_plaintext_auth = yes
ssl = yes
ssl_parameters_regenerate = 168
verbose_ssl = no
mail_location = maildir:/var/vmail/%d/%n
mail_access_groups = mail
mail_debug = no
first_valid_uid = 150
last_valid_uid = 150
maildir_copy_with_hardlinks = yes

protocol imap {
login_executable = /usr/lib/dovecot/imap-login
mail_executable = /usr/lib/dovecot/imap
imap_max_line_length = 65536
#mail_plugins = quota imap_quota
#mail_plugin_dir = /usr/lib/dovecot/imap
#login_greeting_capability = no
#imap_capability =
imap_client_workarounds = outlook-idle delay-newmail
}

protocol pop3 {
#login_executable = /usr/lib/dovecot/pop3-login
#mail_executable = /usr/lib/dovecot/pop3
#pop3_no_flag_updates = no
#pop3_enable_last = no
#pop3_reuse_xuidl = no
#pop3_lock_session = no
#pop3_uidl_format = %08Xv%08Xu
pop3_uidl_format = %08Xv%08Xu
#pop3_uidl_format = %08Xv%08Xu
#pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
#mail_plugins = quota imap_quota
#mail_plugin_dir = /usr/lib/dovecot/pop3
#pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
#postmaster_address = postmaster@xxx.net
#hostname =
#mail_plugins = quota
#mail_plugin_dir = /usr/lib/dovecot/lda
#sendmail_path = /usr/lib/sendmail
#auth_socket_path = /var/run/dovecot/auth-master
}

auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX YZ01234567890.-_@
auth_verbose = no
auth_debug = no

auth default {
mechanisms = plain digest-md5 cram-md5 login
# passdb pam {
# }
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}

userdb passwd {
}
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
}
user = nobody
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
group = mail
}
client {
path = /var/run/dovecot/auth-client
mode = 0660
user = postfix
group = mail
}
}
}

dict {
#quota = mysql:/etc/dovecot-dict-quota.conf
}

plugin {
quota = maildir:storage=10240:messages=1000
acl = vfile:/etc/dovecot-acls
#convert_mail = mbox:%h/mail
trash = /etc/dovecot-trash.conf
}

My log record for delivery ...

Feb 3 23:31:51 yyy postfix/local[12801]: 18A043603D8: to=<abcdef@yyy.xxx.net>, relay=local, delay=0.17, delays=0.1/0.02/0/0.04, dsn=2.0.0, status=sent (delivered to maildir)
Feb 3 23:31:51 yyy postfix/qmgr[12544]: 18A043603D8: removed



Any suggestion?

Regards,

Al
Reply With Quote
Sponsored Links
  #2  
Old 4th February 2011, 10:03
alleks alleks is offline
Senior Member
 
Join Date: Nov 2010
Posts: 157
Thanks: 9
Thanked 9 Times in 9 Posts
Default

Quote:
Originally Posted by aberrio View Post
My log record for delivery ...

Feb 3 23:31:51 yyy postfix/local[12801]: 18A043603D8: to=<abcdef@yyy.xxx.net>, relay=local, delay=0.17, delays=0.1/0.02/0/0.04, dsn=2.0.0, status=sent (delivered to maildir)
Feb 3 23:31:51 yyy postfix/qmgr[12544]: 18A043603D8: removed
Please
Code:
tail -f /var/log/syslog
tail -f /var/log/mail.err
tail -f /var/log/mail.log
And post here results
Reply With Quote
  #3  
Old 4th February 2011, 15:13
aberrio aberrio is offline
Senior Member
 
Join Date: Sep 2007
Posts: 150
Thanks: 13
Thanked 3 Times in 3 Posts
Default

Hello,

Mail.log

Feb 3 23:48:44 musica postfix/postfix-script[13266]: starting the Postfix mail system
Feb 3 23:48:44 musica postfix/master[13267]: daemon started -- version 2.7.1, configuration /etc/postfix
Feb 3 23:48:48 musica dovecot: imap-login: Login: user=<aberrio@musica.tchosting.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 3 23:48:48 musica dovecot: IMAP(aberrio@musica.tchosting.net): Disconnected: Logged out bytes=233/836
Feb 3 23:49:18 musica postfix/smtpd[13366]: connect from localhost[::1]
Feb 3 23:49:20 musica postfix/smtpd[13366]: B70753603CA: client=localhost[::1]
Feb 3 23:49:20 musica postfix/cleanup[13376]: B70753603CA: message-id=<20110204054920.B70753603CA@mail.tchosting.net>
Feb 3 23:49:20 musica postfix/qmgr[13282]: B70753603CA: from=<admin@tchosting.net>, size=513, nrcpt=1 (queue active)
Feb 3 23:49:20 musica postfix/smtpd[13366]: disconnect from localhost[::1]
Feb 3 23:49:21 musica postfix/smtpd[13381]: connect from localhost[127.0.0.1]
Feb 3 23:49:21 musica postfix/smtpd[13381]: 985513603D8: client=localhost[127.0.0.1]
Feb 3 23:49:21 musica postfix/cleanup[13376]: 985513603D8: message-id=<20110204054920.B70753603CA@mail.tchosting.net>
Feb 3 23:49:21 musica postfix/qmgr[13282]: 985513603D8: from=<admin@tchosting.net>, size=976, nrcpt=1 (queue active)
Feb 3 23:49:21 musica postfix/smtpd[13381]: disconnect from localhost[127.0.0.1]
Feb 3 23:49:21 musica amavis[2305]: (02305-08) Passed CLEAN, MYNETS LOCAL [IPv6:::1] [IPv6:::1] <admin@tchosting.net> -> <aberrio@musica.tchosting.net>, Message-ID: <20110204054920.B70753603CA@mail.tchosting.net>, mail_id: F9Y+aKpjNYsb, Hits: -1, size: 513, queued_as: 985513603D8, 882 ms
Feb 3 23:49:21 musica postfix/smtp[13378]: B70753603CA: to=<aberrio@musica.tchosting.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.9, delays=2/0.02/0.01/0.88, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 985513603D8)
Feb 3 23:49:21 musica postfix/qmgr[13282]: B70753603CA: removed
Feb 3 23:49:21 musica postfix/virtual[13382]: 985513603D8: to=<aberrio@musica.tchosting.net>, relay=virtual, delay=0.21, delays=0.1/0.04/0/0.08, dsn=2.0.0, status=sent (delivered to maildir)
Feb 3 23:49:21 musica postfix/qmgr[13282]: 985513603D8: removed
Feb 3 23:50:25 musica dovecot: imap-login: Login: user=<aberrio@musica.tchosting.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 3 23:50:25 musica dovecot: IMAP(aberrio@musica.tchosting.net): Disconnected: Logged out bytes=29/399
Feb 3 23:50:25 musica dovecot: imap-login: Login: user=<aberrio@musica.tchosting.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Feb 3 23:50:25 musica dovecot: IMAP(aberrio@musica.tchosting.net): Disconnected: Logged out bytes=44/497

Opensuse does not have syslog log. I belive it is some wrong on the main.cf file. I just copied a cf from another server and works fine.

I belive We need to review all the entries in the main.cf file.

I have not found anything wrogn I need a new set of eyes to look into.

Regards,

Al
Reply With Quote
  #4  
Old 6th February 2011, 20:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Which tutorial (URL) did you use to set up the system?

Is there a system user called "aberrio" on your system (in /etc/passwd or /etc/aliases)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39


All times are GMT +2. The time now is 15:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.