Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[dovecot + postfix] status=bounced (user unknown) (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 95
Location: FRANCE /Montpellier

PostPosted: Wed Jul 09, 2008 2:12 pm    Post subject: [dovecot + postfix] status=bounced (user unknown) (résolu) Reply with quote

Bonjour à tous, voila quelques heures que je suis dans une impasse pour la configuration de postfix + dovecot lda.

j'ai suivi ce tuto : http://gentoo-wiki.com/Mail_server_using_Postfix_and_Dovecot

version 1.0.X

Voici l'erreur générique :
Code:

postfix/bounce[19335]: bounce_append_proto: flags=0x0 service=bounce id=493256AD0 org_to=flav@domain.tld to=flav@domain.tld off=187 dsn_org=, notif=0x0 stat=5.1.1 act=failed why=user unknown
mx postfix/pipe[19333]: 493256AD0: to=<flav@domain.tld>, relay=dovecot, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1,  status=bounced (user unknown)


Code:

mx postfix # hostname
mx
mx postfix # hostname --fqdn
mx.domain.tld

POSTFIX/ master.cf
Code:

smtp      inet  n       -       n       -       -       smtpd -v
...
dovecot   unix  -       n       n       -       -       pipe
    flags=DRhu user=dovecot:mail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}

POSTFIX/ main.cf
Code:

#soft_bounce = no
queue_directory = /var/spool/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mx.domain.tld
mydomain = domain.tld
myorigin = $mydomain
inet_interfaces = all
mydestination = localhost
#local_recipient_maps = $virtual_mailbox_maps  $virtual_alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
mynetworks = XXX.XXX.XXX.XXX/32 , 127.0.0.0/8
mailbox_command = /usr/libexec/dovecot/deliver
ebug_peer_level = 5

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

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.5.1/html
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.5.1/readme
home_mailbox = Maildir/
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
virtual_gid_maps = static:12
virtual_uid_maps = static:8
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domain_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
relay_domains = mysql:/etc/postfix/mysql/mysql_relay_domain_maps.cf
virtual_mailbox_base = /data/services/vmail/
smtpd_client_restrictions=permit_inet_interfaces,permit_mynetworks,permit_sasl_authenticated,permit
smtpd_sender_restrictions=reject_non_fqdn_sender,permit
smtpd_reject_unlisted_sender = yes
smtpd_recipient_restrictions=permit_mynetworks,reject_non_fqdn_recipient permit_sasl_authenticated reject_unauth_destination permit


il y a bien un domain virtuel inscrit dans la base de donnée avec un utilisateur :
Code:

postmap -q flav@domain.tld mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
domain.tld/flav/Maildir/

Code:

postmap  -q domain.tld mysql:/etc/postfix/mysql/mysql_virtual_domain_maps.cf
domain.tld

dovecot -n
Code:
 
# 1.0.13: /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
protocols: imap  pop3
ssl_cert_file: /etc/ssl/dovecot/server.pem
ssl_key_file: /etc/ssl/dovecot/server.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
verbose_proctitle: yes
first_valid_uid: 8
last_valid_uid: 8
first_valid_gid: 12
last_valid_gid: 12
mail_location: maildir:/data/services/vmail/%d/%n/Maildir/:INDEX=/data/services/vmail/%d/%n/indexes
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
  mechanisms: plain login
  passdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql.conf
  userdb:
    driver: passwd
    args: /etc/dovecot/dovecot-sql.conf
  userdb:
    driver: prefetch
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: dovecot
      group: mail
plugin:
  quota: dirsize:/data/services/vmail/%d/%n/Maildir/
  convert_mail: maildir:/data/services/vmail/%d/%n/Maildir/


log dovecot :
Code:

eliver(flav@domain.tld): Jul 09 15:44:09 Info: Loading modules from directory: /usr/lib/dovecot/lda
deliver(flav@domain.tld): Jul 09 15:44:09 Info: Module loaded: /usr/lib/dovecot/lda/lib10_quota_plugin.so
deliver(flav@domain.tld): Jul 09 15:44:09 Info: Loading modules from directory: /usr/lib/dovecot/lda
deliver(flav@domain.tld): Jul 09 15:44:09 Info: Module loaded: /usr/lib/dovecot/lda/lib10_quota_plugin.so


Alors que le pop3 de dovecot fonctionne tres bien :
Code:

+OK Dovecot ready.
user flav@domain.tld
+OK
pass XXXXXXX
+OK Logged in.
list
+OK 0 messages:


Les dossiers existent bien :
Code:

/data/services/vmail/domain.tld/flav/Maildir/new/

creer automatiquement

Je me tourne vers la communauté gentoo pour me filer un petit coup de pouce ^^.

Merci d'avance

Flav


Last edited by Flav on Wed Jul 09, 2008 7:17 pm; edited 3 times in total
Back to top
View user's profile Send private message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 95
Location: FRANCE /Montpellier

PostPosted: Wed Jul 09, 2008 7:15 pm    Post subject: Reply with quote

quelques heures de plus m'ont permis de resoudre le probleme.
j'ai migré la version à 1.1.1-r1.
et suivit les droits mail:mail dans master.cf
et dovecot.conf socket : mail:mail.

et ça délivre.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum