Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Jerrale G

 On 8/12/2010 1:44 PM, Kurt22 wrote:

Befor I had :

   userdb passwd {

   }

And now :

#  userdb passwd {

#  }

And now I have not this message ! Perfect :)


--
Yeah, you commented out that config so that it will ignore it.



Jerrale G.
SC Senior Admin


Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Kurt22

Befor I had :

  userdb passwd {

  }

And now :

#  userdb passwd {

#  }

And now I have not this message ! Perfect :)
-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29421357.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Daniel Luttermann
Kurt22 wrote on 12.08.2010:

> So now I want to recieve and send a email. But it's strange because I have
> always in my dovecot log passwd(cont...@akairnet.com, 91.121.76.71): unknown
> user.

> So it not was the problem

hmm, maybe Dovecot tries to lookup the user also from /etc/passwd?

Do you use something like

passdb sql {
args = /etc/dovecot-sql.conf
  }
  passdb pam {
  }

in your dovecot.conf? If yes, then you can try to uncomment the pam
related settings. Dovecot can use multiple databases so I guess that
Dovecot tries to lookup the user first from /etc/passwd and then from
your mysql database. More infos:
http://wiki.dovecot.org/Authentication/MultipleDatabases

> Thanks really if you going in france I take you a good bottle wine :D

Thank you :-)

--
Daniel



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Kurt22

Congratulation Daniel it's Ok with in my dovecot.conf, I have to add :

protocol lda {
postmaster_address = postmas...@akairnet.com
}

So now I want to recieve and send a email. But it's strange because I have
always in my dovecot log passwd(cont...@akairnet.com, 91.121.76.71): unknown
user.

So it not was the problem

Thanks really if you going in france I take you a good bottle wine :D
-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29420818.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Daniel Luttermann
Kurt22 wrote on 12.08.2010:

> In fact I don't have :s

> but now in my mail.log -> local configuration error

> Aug 12 16:35:19 ns351550 postfix/pipe[24171]: B06633BA9B:
> to=, relay=dovecot, delay=0.11,
> delays=0.07/0.01/0/0.03, dsn=5.3.5, status=bounced (local configuration
> error). And so in dovecot log unknow user.

> Do you think if I want all reinstal my server ? xD

> I have upload my  http://old.nabble.com/file/p29419546/master.cf master.cf
> file if you want to look my file.

OK, looks not so bad - it seems this is a configuration error in the
dovecot.conf (especially in the LDA section).

Are there any other "fatal" warnings in the log a few lines before the
above message? What's the output of "dovecot -n"?


--
Daniel



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Kurt22

In fact I don't have :s

but now in my mail.log -> local configuration error

Aug 12 16:35:19 ns351550 postfix/pipe[24171]: B06633BA9B:
to=, relay=dovecot, delay=0.11,
delays=0.07/0.01/0/0.03, dsn=5.3.5, status=bounced (local configuration
error). And so in dovecot log unknow user.

Do you think if I want all reinstal my server ? xD

I have upload my  http://old.nabble.com/file/p29419546/master.cf master.cf 
file if you want to look my file.
-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29419546.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Daniel Luttermann
Kurt22 wrote on 12.08.2010:

> But in mail.log I have now a new problem T_T
>> connect to transport dovecot: Connection refused

> Aug 12 15:13:45 ns351550 postfix/master[19833]: daemon started -- version
> 2.5.5, configuration /etc/postfix
> Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: connect from
> web24404.mail.ird.yahoo.com[87.248.114.216]
> Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: 8F3A73BA9A:
> client=web24404.mail.ird.yahoo.com[87.248.114.216]
> Aug 12 15:17:42 ns351550 postfix/cleanup[20041]: 8F3A73BA9A:
> message-id=<525519.24632...@web24404.mail.ird.yahoo.com>
> Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: 8F3A73BA9A:
> from=, size=3516, nrcpt=1 (queue active)
> Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: warning: connect to transport
> dovecot: Connection refused

do you've the appropriate entry for the Dovecot LDA in master.cf like

dovecot   unix  -   n   n   -   -   pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d 
${recipient}

See also: http://wiki.dovecot.org/LDA/Postfix


--
Daniel



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Kurt22

Really thanks for to help me.

postmap -q akairnet.com mysql:/etc/postfix/mysql-virtual_domaines.cf

> akairnet.com

mysql-virtual_domaines.cf

query = SELECT name FROM domains WHERE name = '%s'

in My table domains I have :

id  namemaster  last_check  typenotified_serial account
6   davygames.com   NULLNULLNATIVE  NULLNULL
8   akairnet.comNULLNULLNATIVE  NULLNULL

But in mail.log I have now a new problem T_T 
> connect to transport dovecot: Connection refused

Aug 12 15:13:45 ns351550 postfix/master[19833]: daemon started -- version
2.5.5, configuration /etc/postfix
Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: connect from
web24404.mail.ird.yahoo.com[87.248.114.216]
Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: 8F3A73BA9A:
client=web24404.mail.ird.yahoo.com[87.248.114.216]
Aug 12 15:17:42 ns351550 postfix/cleanup[20041]: 8F3A73BA9A:
message-id=<525519.24632...@web24404.mail.ird.yahoo.com>
Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: 8F3A73BA9A:
from=, size=3516, nrcpt=1 (queue active)
Aug 12 15:17:42 ns351550 postfix/qmgr[19840]: warning: connect to transport
dovecot: Connection refused
Aug 12 15:17:42 ns351550 postfix/error[20042]: 8F3A73BA9A:
to=, relay=none, delay=0.09, delays=0.08/0/0/0,
dsn=4.3.0, status=deferred (mail transport unavailable)
Aug 12 15:17:42 ns351550 postfix/smtpd[20037]: disconnect from
web24404.mail.ird.yahoo.com[87.248.114.216]
Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: 39F933BA9C: from=<>,
size=5217, nrcpt=1 (queue active)
Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: D7E0F3BA95:
from=, size=3464, nrcpt=1 (queue active)
Aug 12 15:18:45 ns351550 postfix/qmgr[19840]: warning: connect to transport
dovecot: Connection refused
Aug 12 15:18:45 ns351550 postfix/error[20042]: D7E0F3BA95:
to=, relay=none, delay=591, delays=591/0/0/0.02,
dsn=4.3.0, status=deferred (mail transport unavailable)
Aug 12 15:18:46 ns351550 postfix/smtp[20092]: 39F933BA9C:
to=, relay=mx2.mail.eu.yahoo.com[77.238.184.241]:25,
delay=406, delays=405/0.01/0.02/0.36, dsn=2.0.0, status=sent (250 ok dirdel)
Aug 12 15:18:46 ns351550 postfix/qmgr[19840]: 39F933BA9C: removed

-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29418607.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Daniel Luttermann
Kurt22 wrote on 12.08.2010:

> but now in my mail.log I have Relay access denied

> Aug 12 10:40:20 ns351550 postfix/smtpd[5332]: NOQUEUE: reject: RCPT from
> web24408.mail.ird.yahoo.com[87.248.114.220]: 554 5.7.1
> : Relay access denied; from=
> to= proto=SMTP
> helo=

what's the output of

  postmap -q akairnet.com mysql:/etc/postfix/mysql-virtual_domaines.cf

As result you should see "OK" for example if the query is OK and if
your domain is listed in your mysql table. If you get no value back
then Postfix reject mails because Postfix is then not "final
destination". In this case you should check your mysql query if you've
used the right select... syntax and make sure your domain is listed in
this table.

--
Daniel



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-12 Thread Kurt22

I have change main.cf with :

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no

#my name server
myhostname = ns351550.ovh.net 

readme_directory = no

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

mydestination = $myhostname, localhost.$mydomain $mydomain
local_recipient_maps = $alias_maps unix:passwd.byname $virtual_mailbox_maps
relayhost = 
mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128, 91.121.76.71
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = 

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf

virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

virtual_transport = dovecot

dovecot_destination_recipient_limit = 1

smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_auth_only = yes

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination

maximal_queue_lifetime = 3d
bounce_queue_lifetime = 3d

but now in my mail.log I have Relay access denied

Aug 12 10:40:20 ns351550 postfix/smtpd[5332]: NOQUEUE: reject: RCPT from
web24408.mail.ird.yahoo.com[87.248.114.220]: 554 5.7.1
: Relay access denied; from=
to= proto=SMTP helo=


-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29415488.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-11 Thread Daniel Luttermann
Kurt22 wrote on 11.08.2010:

> Thanks Daniel, my log have evolued but i have always the problem. I use a
> mysql db authentification so I have replace your answer by :

> local_recipient_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf

> with in mysql-virtual_comptes.cf :

> hosts = 127.0.0.1
> user = 
> password = 
> dbname = x
> table = users
> select_field =
> CONCAT(SUBSTRING_INDEX(username,'@',-1),'/',SUBSTRING_INDEX(username,'@',1),'/')
> where_field = username

> in mail.log :

> Aug 11 20:35:22 ns351550 postfix/local[24266]: DA0353BA95:
> to=, relay=local, delay=0.13, delays=0.12/0/0/0,
> dsn=5.1.1, status=bounced (unknown user: "contact")

Hmm, first: the sql query for postfix above version 2.2 has changed.
The query (new) looks like:

  query = SELECT value FROM table WHERE value='%s'

See: http://www.postfix.org/MYSQL_README.html

Depending on your mysql fields you can also use

 query = SELECT username FROM users WHERE username='%s'

It's not really needed to works with concat etc.

Your config looks like that you want to use "virtual" users and
domains because you use virtual_mailbox_domains and other virtual
related config options.

For virtual users and domains you should not list your "virtual"
domains in $mydestination. All virtual users should be in your
database so that you can use the Dovecot LDA for delivery as you've
set with "virtual_transport = dovecot".

I suggest to leave local_recipient_maps at the default value and use
"virtual_mailbox_domains", "virtual_alias_maps" and
"virtual_transport" instead. You must also change $mydestination
because you can not define a domain as virtual and local domain.

If you use a mysql table for local users make sure that the user can
be found. You can test this also with

 postmap -q cont...@your-domain mysql:/etc/postfix/mysql-virtual_comptes.cf

If the query is correct you should get back the correct value. If so,
Postfix should be able to deliver the mail.


--
Daniel



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-11 Thread Kurt22

Thanks Daniel, my log have evolued but i have always the problem. I use a
mysql db authentification so I have replace your answer by :

local_recipient_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf

with in mysql-virtual_comptes.cf :

hosts = 127.0.0.1
user = 
password = 
dbname = x
table = users
select_field =
CONCAT(SUBSTRING_INDEX(username,'@',-1),'/',SUBSTRING_INDEX(username,'@',1),'/')
where_field = username

in mail.log :

Aug 11 20:35:22 ns351550 postfix/local[24266]: DA0353BA95:
to=, relay=local, delay=0.13, delays=0.12/0/0/0,
dsn=5.1.1, status=bounced (unknown user: "contact")


Kurt

-- 
View this message in context: 
http://old.nabble.com/passwd%28contact%40akairnet.com%2C91.121.76.71%29%3A-unknown-user-tp29409942p29411461.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-11 Thread Daniel Luttermann
Kurt22 wrote on 11.08.2010:

> I have a probleme with my configuration of dovecot I think. I have no problem
> for send a email but I don't want receive a email. In my /var/log/mail.log I
> have :

> Quote:
> connect from mail-ww0-f45.google.com[74.125.82.45]
> Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: NOQUEUE: reject: RCPT from
> mail-ww0-f45.google.com[74.125.82.45]: 550 5.1.1 :
> Recipient address rejected: User unknown in local recipient table;
> from= to= proto=ESMTP
> helo=
> Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: disconnect from
> mail-ww0-f45.google.com[74.125.82.45]
> so...problem on :

OK, user is unknown - you've commented out local_recipient_maps so the
default value is

  local_recipient_maps = proxy:unix:passwd.byname $alias_maps

> mydestination = localhost, localhost.akairnet.com, akairnet.com
> #local_recipient_maps =

Is the user "contact" existent in /etc/passwd? If you use your domain
in mydestination then Postfix tries to find the user in /etc/passwd or
/etc/aliases. If the user is not found then the above error is logged.


--
Daniel



[Dovecot] passwd(cont...@akairnet.com, 91.121.76.71): unknown user

2010-08-11 Thread Kurt22

I have a probleme with my configuration of dovecot I think. I have no problem
for send a email but I don't want receive a email. In my /var/log/mail.log I
have :

Quote:
connect from mail-ww0-f45.google.com[74.125.82.45]
Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: NOQUEUE: reject: RCPT from
mail-ww0-f45.google.com[74.125.82.45]: 550 5.1.1 :
Recipient address rejected: User unknown in local recipient table;
from= to= proto=ESMTP
helo=
Aug 11 14:21:58 ns351550 postfix/smtpd[1844]: disconnect from
mail-ww0-f45.google.com[74.125.82.45]
so...problem on :

Log dovecot :
dovecot: 2010-08-11 17:53:14 Info: auth(default): client in: AUTH   1  
PLAIN   service=IMAPsecured lip=91.121.76.71rip=91.121.76.71   
resp=AGNvbnRhY3RAYWthaXJuZXQuY29tAFgyMmRiNzgh
dovecot: 2010-08-11 17:53:14 Info: auth-worker(default):
sql(cont...@akairnet.com,91.121.76.71): query: SELECT CONCAT(user.user, '@',
domains.name) AS user,user.password FROM user,domains WHERE
user.domain_id=domains.id AND CONCAT(user.user, '@',
domains.name)='cont...@akairnet.com'
dovecot: 2010-08-11 17:53:14 Info: auth(default): client out: OK1  
user=cont...@akairnet.com
dovecot: 2010-08-11 17:53:14 Info: auth(default): master in: REQUEST1  
13716   1
dovecot: 2010-08-11 17:53:14 Info: auth(default):
passwd(cont...@akairnet.com,91.121.76.71): lookup
dovecot: 2010-08-11 17:53:14 Info: auth(default):
passwd(cont...@akairnet.com,91.121.76.71): unknown user
dovecot: 2010-08-11 17:53:14 Info: auth(default): master out: USER  1  
cont...@akairnet.comuid=5000gid=5000   
home=/home/var/vmail/akairnet.com/contact
dovecot: 2010-08-11 17:53:14 Info: imap-login: Login:
user=, method=PLAIN, rip=91.121.76.71,
lip=91.121.76.71, secured
dovecot: 2010-08-11 17:53:14 Info: IMAP(cont...@akairnet.com): Disconnected:
Logged out



Quote:
Recipient address rejected: User unknown in local recipient table
In my main.cf I have :

Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_auth_only = yes

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.akairnet.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = mail.akairnet.com
mydestination = localhost, localhost.akairnet.com, akairnet.com
#local_recipient_maps =
relayhost =
mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128, 91.121.76.71
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/

#virtual_alias_maps =
mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domaines.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf


#virtual_mailbox_domains =
mysql:/etc/postfix/mysql/virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000

#virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual-mailbox-maps.cf
#virtual_alias_maps =
mysql:/etc/postfix/mysql/virtual-alias-maps.cf,mysql:/etc/postfix/mysql/email2email.cf

virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

#smtpd_sasl_type = dovecot
#smtpd_sasl_path = private/auth
#smtpd_sasl_auth_enable = yes
#smtpd_tls_auth_only = yes
#smtpd_recipient_restrictions =
permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject_unauth_destination


smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination


maximal_queue_lifetime = 3d
bounce_queue_lifetime = 3d
In dovecot.conf for auth default I have :

Quote:
auth default {
mechanisms = plain login
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

userdb passwd {

}
userdb static {

args = uid=5000 gid=5000 home=/home/var/vmail/%d/%n allow_all_users=yes

}

socket listen {
master {
# Master socket provides access to userdb information. It's typically
# used to give Dovecot's local delivery age