Current time: 11-23-2024, 07:31 AM Hello There, Guest! (LoginRegister)


Thread Closed 
Problem with new mail user
Author Message
mato Offline
Newbie
*

Posts: 9
Joined: Aug 2009
Reputation: 0
Post: #1
Question Problem with new mail user
Hi all

I have problem with mail users. First I tryed ispcp 1.0.0 stable, then the trunk from 17/09/2009 - same problem.
I use OpenSuse 11.1 and on setup seemed ok - no errors. No problems with adding domains, ftp, or dns.

The only problem was by creation mail user - i get "Unknown error".
I looked in mysql - /var/spool/postifx/etc/sasldb2 was missing ... to be exact the folder etc was missing to.
Ok I googled and found soulution
Code:
chown postfix:mail /etc/sasldb2
mkdir /var/spool/postfix/etc
chown postfix:root /var/spool/postfix/etc
Now after adding mail user status appears OK.


By creation mail users I notice in /var/log/messages
Code:
Sep 22 18:51:24 orange ispcp_daemon[19851]: child 19851 started !
Sep 22 18:51:24 orange ispcp_daemon[19851]: Aeee! SIG_PIPE was received ! Will we survive ?
Sep 22 18:51:24 orange ispcp_daemon[19851]: send_line(): socket write error: Broken pipe
Sep 22 18:51:25 orange ispcp_daemon[2822]: EINTR was received ! continue;
Sep 22 18:51:27 orange saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
Sep 22 18:51:27 orange saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found
Sep 22 18:51:27 orange saslpasswd2: error deleting entry from sasldb: DB_NOTFOUND: No matching key/data pair found


so the sending mail doesn't work (/var/log/mail)
Code:
Sep 22 18:57:33 orange postfix/smtpd[20220]: connect from BSN-77-xxx-xxx.dsl.siol.net[193.77.xxx.xxx]
Sep 22 18:57:33 orange postfix/smtpd[20220]: NOQUEUE: reject: RCPT from BSN-77-xxx-xxx.dsl.siol.net[193.77.xx.xx]: 504 5.5.2 <PC_NAME>: Helo command rejected: need fully-qualified hostname; from=<user@domain.tld> to=<testuser@gmail.com> proto=ESMTP helo=<PC_NAME>
Sep 22 18:57:36 orange postfix/smtpd[20220]: disconnect from BSN-77-xxx-xxx.dsl.siol.net[193.77.xxx.xxx]

I would be grateful for any help
(This post was last modified: 09-23-2009 07:00 AM by mato.)
09-23-2009 06:56 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem with new mail user
the "deleting in sasldb2" is normal - always when adding new users.

Maybe you can list what's in your sasldb2... to sort out where further investigations are needed...

/J
09-23-2009 07:05 AM
Visit this user's website Find all posts by this user
mato Offline
Newbie
*

Posts: 9
Joined: Aug 2009
Reputation: 0
Post: #3
RE: Problem with new mail user
# sasldblistusers2
Code:
user@domain.tld: userPassword

that is the only mail user created with ispcp
09-23-2009 07:18 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem with new mail user
is there anything in the ispcp logs?
09-23-2009 07:35 AM
Visit this user's website Find all posts by this user
mato Offline
Newbie
*

Posts: 9
Joined: Aug 2009
Reputation: 0
Post: #5
RE: Problem with new mail user
hmm in the /var/log/ispcp looks everything almost empty

only mail.prev looks the same as /var/log/mail
and here is a bit
Code:
Sep 22 22:01:19 orange postfix/smtpd[21019]: connect from orange.domain.tld.local[127.0.0.1]
Sep 22 22:01:19 orange postfix/smtpd[21019]: A927220590: client=orange.domain.tld.local[127.0.0.1]
Sep 22 22:01:19 orange postfix/cleanup[21021]: A927220590: message-id=<db31952c2340a5207042a7deea054c99.squirrel@orange.domain.tld>
Sep 22 22:01:19 orange postfix/qmgr[19977]: A927220590: from=<user@domain.tld>, size=717, nrcpt=1 (queue active)
Sep 22 22:01:19 orange postfix/smtpd[21019]: disconnect from orange.domain.tld.local[127.0.0.1]
Sep 22 22:01:19 orange imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 22 22:01:19 orange imapd: LOGIN, user=user@domain.tld, ip=[::ffff:127.0.0.1], port=[47767], protocol=IMAP
Sep 22 22:01:19 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:19 orange imapd: Error: Input/output error
Sep 22 22:01:19 orange imapd: Check for proper operation and configuration
Sep 22 22:01:19 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:19 orange imapd: LOGOUT, user=user@domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=613, sent=203, time=0
Sep 22 22:01:20 orange imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 22 22:01:20 orange imapd: LOGIN, user=user@domain.tld, ip=[::ffff:127.0.0.1], port=[47768], protocol=IMAP
Sep 22 22:01:20 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:20 orange imapd: Error: Input/output error
Sep 22 22:01:20 orange imapd: Check for proper operation and configuration
Sep 22 22:01:20 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:20 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:20 orange imapd: Error: Input/output error
Sep 22 22:01:20 orange imapd: Check for proper operation and configuration
Sep 22 22:01:20 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:20 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:20 orange imapd: Error: Input/output error
Sep 22 22:01:20 orange imapd: Check for proper operation and configuration
Sep 22 22:01:20 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:20 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:20 orange imapd: Error: Input/output error
Sep 22 22:01:20 orange imapd: Check for proper operation and configuration
Sep 22 22:01:20 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:21 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:21 orange imapd: Error: Input/output error
Sep 22 22:01:21 orange imapd: Check for proper operation and configuration
Sep 22 22:01:21 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:21 orange imapd: Failed to create cache file: maildirwatch (user@domain.tld)
Sep 22 22:01:21 orange imapd: Error: Input/output error
Sep 22 22:01:21 orange imapd: Check for proper operation and configuration
Sep 22 22:01:21 orange imapd: of the File Access Monitor daemon (famd).
Sep 22 22:01:21 orange imapd: LOGOUT, user=user@domain.tld, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
Sep 22 22:01:21 orange postfix/smtp[21023]: A927220590: to=<testmail@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.218.62]:25, delay=2, delays=0.2/0/0.48/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1253649697 18si339552bwz.65)
Sep 22 22:01:22 orange postfix/qmgr[19977]: A927220590: removed
Sep 22 22:32:05 orange postgrey: 2009/09/22-22:32:05 Server closing!
Sep 22 22:32:06 orange postfix/policyd-weight[4393]: warning: Got SIGPIPE. Child 4393 terminated.
Sep 22 22:32:06 orange postfix/policyd-weight[4393]: warning: child: err: Died at /usr/sbin/policyd-weight line 1322.
Sep 22 22:32:06 orange postfix/policyd-weight[4393]: warning: Got SIGPIPE. Child 4393 terminated.
Sep 22 22:32:06 orange postfix/policyd-weight[21289]: Daemon terminated.
Sep 22 22:32:08 orange authdaemond: stopping authdaemond children
Sep 22 22:32:08 orange postfix/master[19969]: terminating on signal 15
Sep 22 23:12:41 orange authdaemond: modules="authuserdb authuserdb authpam authpgsql authldap authmysql authcustom authpipe", daemons=5
Sep 22 23:12:41 orange authdaemond: Installing libauthuserdb
Sep 22 23:12:41 orange authdaemond: Installation complete: authuserdb
Sep 22 23:12:41 orange authdaemond: Installing libauthuserdb
Sep 22 23:12:41 orange authdaemond: Installation complete: authuserdb
Sep 22 23:12:41 orange authdaemond: Installing libauthpam
Sep 22 23:12:41 orange authdaemond: Installation complete: authpam
Sep 22 23:12:41 orange authdaemond: Installing libauthpgsql
Sep 22 23:12:42 orange authdaemond: Installation complete: authpgsql
Sep 22 23:12:42 orange authdaemond: Installing libauthldap
Sep 22 23:12:43 orange authdaemond: Installation complete: authldap
Sep 22 23:12:43 orange authdaemond: Installing libauthmysql
Sep 22 23:12:44 orange authdaemond: Installation complete: authmysql
Sep 22 23:12:44 orange authdaemond: Installing libauthcustom
Sep 22 23:12:44 orange authdaemond: Installation complete: authcustom
Sep 22 23:12:44 orange authdaemond: Installing libauthpipe
Sep 22 23:12:44 orange authdaemond: Installation complete: authpipe
Sep 22 23:13:17 orange postfix/policyd-weight[3524]: policyd-weight 0.1.14 beta-17 started and daemonized. conf:default settings; GID:114 114 EGID:114 114 UID:110 EUID:110; taint mode: 0
Sep 22 23:13:17 orange postfix/policyd-weight[3524]: warning: cache_query: $csock couln't be created: connect: Connection refused, calling spawn_cache()
Sep 22 23:13:19 orange postfix/postfix-script[3591]: starting the Postfix mail system
Sep 22 23:13:19 orange postfix/master[3594]: daemon started -- version 2.5.5, configuration /etc/postfix
Sep 22 23:13:20 orange postgrey: Process Backgrounded
Sep 22 23:13:20 orange postgrey: 2009/09/22-23:13:20 postgrey (type Net::Server::Multiplex) starting! pid(3619)
Sep 22 23:13:20 orange postgrey: Binding to TCP port 60000 on host 127.0.0.1
Sep 22 23:13:20 orange postgrey: Setting gid to "65534 65534"
Sep 22 23:13:20 orange postgrey: Setting uid to "111"
imap errors appears by webmail ... (sending by webmail works)


here is also the postfix configuration ...

# postconf -n
Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/spool/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = orange.domain.tld
myhostname = orange
mynetworks_style = host
myorigin = $myhostname
recipient_delimiter = +
setgid_group = maildrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.3 OMEGA Managed
smtpd_data_restrictions = reject_multi_recipient_bounce,                               reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:12525, check_policy_service inet:127.0.0.1:60000, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:12
virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1001

master.cf
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#    -o receive_override_options=no_address_mappings                # Uncomment this line, when unsing AMaViS
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
# For AOL-Accounts

587       inet  n       -       -       -       -       smtpd

   -o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
   -o fallback_relay=
#   -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#localhost:10025 inet   n       -       n       -       -       smtpd -o content_filter=
scache    unix  -       -       n       -       1       scache
# ====================================================================

# ispCP ω (OMEGA) a Virtual Hosting Control System

#

# @copyright    2001-2006 by moleSoftware GmbH

# @copyright    2006-2009 by ispCP | http://isp-control.net

# @version        SVN: $Id: master.cf 1970 2009-09-04 10:51:29Z nuxwin $

# @link            http://isp-control.net

# @author        ispCP Team

# ====================================================================

# for AMaViS and spam filter support

amavis    unix  -       -       n       -       2       smtp

   -o smtp_data_done_timeout=1200

   -o smtp_send_xforward_command=yes

   -o disable_dns_lookups=yes



localhost:10025 inet  n -       n       -      -        smtpd

   -o content_filter=

   -o local_recipient_maps=

   -o relay_recipient_maps=

   -o smtpd_restriction_classes=

   -o smtpd_client_restrictions=

   -o smtpd_helo_restrictions=

   -o smtpd_sender_restrictions=

   -o smtpd_recipient_restrictions=permit_mynetworks,reject

   -o smtpd_override_options=no_address_mappings

   -o mynetworks=127.0.0.0/8

   -o strict_rfc821_envelopes=yes



# ispCP autoresponder

ispcp-arpl unix  -      n       n       -       -       pipe

  flags=O user=vmail argv=/srv/www/ispcp/engine/messenger/ispcp-arpl-msgr



# TLS - Activate, if TLS is avaiable/used

465     inet  n       -       n       -       -       smtpd

   -o smtpd_tls_wrappermode=yes

   -o smtpd_sasl_auth_enable=yes

#   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
retry     unix  -       -       n       -       -       error
proxywrite unix -       -       n       -       1       proxymap
(This post was last modified: 09-23-2009 07:59 AM by mato.)
09-23-2009 07:55 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem with new mail user
hm.

Receiving Mials is ok, sending mail in webmail works.
So, we only have a problem that the data don't get in the sasldb.

Can you compare if the needed commands (all cmd_*sasl*) in /etc/ispcp/ispcp.conf are valid?

/J
09-23-2009 08:23 AM
Visit this user's website Find all posts by this user
mato Offline
Newbie
*

Posts: 9
Joined: Aug 2009
Reputation: 0
Post: #7
RE: Problem with new mail user
thanks for quick answers

also receiving doesn't work. It works only sending in webmail, and mails from the ispcp.

mail from testmail@gmail.com to user@domain.tld
Code:
Sep 23 07:35:55 orange postfix/smtpd[5189]: connect from mail-yw0-f182.google.com[209.85.211.182]
Sep 23 07:35:55 orange postfix/policyd-weight[5176]: warning: cache_query: $csock couln't be created: connect: Connection refused, calling spawn_cache()
Sep 23 07:35:56 orange postfix/policyd-weight[5176]: weighted check:  NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 DSBL_ORG=SKIP(0) CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-yw0-f182.google. - helo-domain: .google.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2 IN_PM_RFCI=0.1; <client=209.85.211.182> <helo=mail-yw0-f182.google.com> <from=testmail@gmail.com> <to=user@domain.tld>; rate: -8.4
Sep 23 07:35:56 orange postfix/policyd-weight[5176]: warning: cache_query: $csock couln't be created: connect: Connection refused, calling spawn_cache()
Sep 23 07:35:56 orange postfix/policyd-weight[5176]: decided action=PREPEND X-policyd-weight:  NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 DSBL_ORG=SKIP(0) CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-yw0-f182.google. - helo-domain: .google.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2 IN_PM_RFCI=0.1; rate: -8.4; <client=209.85.211.182> <helo=mail-yw0-f182.google.com> <from=testmail@gmail.com> <to=user@domain.tld>; delay: 1s
Sep 23 07:35:56 orange postgrey: action=greylist, reason=new, client_name=mail-yw0-f182.google.com, client_address=209.85.211.182, sender=testmail@gmail.com, recipient=user@domain.tld
Sep 23 07:35:56 orange postfix/smtpd[5189]: NOQUEUE: reject: RCPT from mail-yw0-f182.google.com[209.85.211.182]: 450 4.2.0 <user@domain.tld>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/domain.tld.html; from=<testmail@gmail.com> to=<user@domain.tld> proto=ESMTP helo=<mail-yw0-f182.google.com>
Sep 23 07:35:56 orange postfix/smtpd[5189]: disconnect from mail-yw0-f182.google.com[209.85.211.182]

CMD_SASLDB_LISTUSERS2 = /usr/sbin/sasldblistusers2
Code:
# /usr/sbin/sasldblistusers2
user@domain.tld: userPassword

CMD_SASLDB_PASSWD2 = /usr/sbin/saslpasswd2
Code:
# /usr/sbin/saslpasswd2 -v

This product includes software developed by Computing Services
at Carnegie Mellon University (http://www.cmu.edu/computing/).

Built against SASL API version 2.1.22
LibSasl version 2.1.22 by "Cyrus SASL"

emm ... now mail receiving works, still with postfix/policyd-weight warnings (4 lines)
(This post was last modified: 09-23-2009 04:13 PM by mato.)
09-23-2009 03:21 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Problem with new mail user
the posted lines show the postgrey filter... until some minutes the mails arrive...

So - we only have the problem how the user get into the sasldb ?

Could you switch debug to 1 in /etc/ispcp/ispcp.conf (last lines)

Then: all users in /etc/postfix/ispcp/sender-access should also be in the sasldb

If you change the password of one of theese users then you should have in the ispcp logfiles somewhere the full sasl command (including the password etc).

/J
09-23-2009 04:54 PM
Visit this user's website Find all posts by this user
mato Offline
Newbie
*

Posts: 9
Joined: Aug 2009
Reputation: 0
Post: #9
RE: Problem with new mail user
ok, have read about postgrey, its about 5min from gmail (after greylisted)... and never from our national isp ... my isp provider's mail server doesn't try to send mail again...
so how do I disable postgrey?

first must tell, what i have noticed in mail.conf (when i send with auth - same as for receiving)
Code:
Sep 23 09:03:39 orange postfix/smtpd[6044]: connect from BSN-77-xxx-xxx.dsl.siol.net[193.77.xxx.xxx]
Sep 23 09:03:39 orange postfix/smtpd[6044]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Sep 23 09:03:39 orange postfix/smtpd[6044]: warning: BSN-77-xxx-xxx.dsl.siol.net[193.77.xxx.xxx]: SASL LOGIN authentication failed: generic failure
Sep 23 09:03:39 orange postfix/smtpd[6044]: lost connection after AUTH from BSN-77-xxx-xxx.dsl.siol.net[193.77.xxx.xxx]
Sep 23 09:03:39 orange postfix/smtpd[6044]: disconnect from BSN-77-221-66.dsl.siol.net[193.77.xxx.xxx]

now will I trying by your advice
/var/log/ispcp/ispcp-mbox-mngr.stdout after changing password for user test@domain.tld to MYNEWPASSWORD

Code:
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_change_data(), msg: Starting...
DEBUG: push_el() sub_name: mbox_add_data(), msg: Starting...
DEBUG: push_el() sub_name: mbox_add_mta_cfg_data(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_mta_cfg_autorespond_data(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_last_transport_entry(), msg: Starting...


$sql:select count(mail_id) as cnt from mail_users where (status = 'ok' or status = 'change') and mail_auto_respond != '_no_' and domain_id = 4  and sub_id = 0 and mail_type != 'normal_catchall' and mail_type != 'alias_catchall';

DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_last_transport_entry(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_last_transport_entry(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: del_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: del_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_last_transport_entry(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/sbin/postmap /etc/postfix/ispcp/transport'), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_mta_cfg_autorespond_data(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/sbin/postmap /etc/postfix/ispcp/mailboxes'), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/sbin/postmap /etc/postfix/ispcp/aliases'), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_mta_cfg_data(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_mta_file_data(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Starting...
DEBUG: push_el() sub_name: make_dir(), msg: '/var/spool/mail/virtual/domain.tld/test' exists ! Setting its permissions...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Starting...
DEBUG: push_el() sub_name: make_dir(), msg: '/var/spool/mail/virtual/domain.tld/test/cur' exists ! Setting its permissions...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Starting...
DEBUG: push_el() sub_name: make_dir(), msg: '/var/spool/mail/virtual/domain.tld/test/tmp' exists ! Setting its permissions...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Starting...
DEBUG: push_el() sub_name: make_dir(), msg: '/var/spool/mail/virtual/domain.tld/test/new' exists ! Setting its permissions...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: make_dir(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_mta_file_data(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_po_data(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: crypt_md5_data(), msg: Starting...
DEBUG: push_el() sub_name: gen_rand_num(), msg: Starting...
DEBUG: push_el() sub_name: gen_rand_num(), msg: Ending...
DEBUG: push_el() sub_name: crypt_md5_data(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/sbin/makeuserdb'), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_po_data(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_sasl_data(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: domain.tld
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_sasl_user(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_sasl_user(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Starting...
DEBUG: push_el() sub_name: sys_command_rs(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/echo "MYNEWPASSWORD" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u domain.tld test && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2'), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/sbin/postmap /etc/postfix/ispcp/sender-access'), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_sasl_data(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_data(), msg: Ending...
DEBUG: push_el() sub_name: mbox_change_data(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: mbox_mngr_shut_down(), msg: Ending...
(This post was last modified: 09-23-2009 05:50 PM by mato.)
09-23-2009 05:18 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: Problem with new mail user
ok, here you have the command:

/bin/echo "MYNEWPASSWORD" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u domain.tld test && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2

can you check if the user is in the sasldb?

if not, run the command in the shell, manually...

Please check both sasl files...

We have to be sure, that the users are in the db - otherwise it's not worth going further...

/J

PS: püostgrey: a very bad isp if he does not send mails twice if they can not be delivered immediately (its a temp failure).
I'd wait at least 2 hours before deciding to disable postgrey. also read some docu about the services...
09-23-2009 05:56 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)