Current time: 05-17-2024, 04:40 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[erledigt]Mail anlegen sowie versenden nicht möglich.
Author Message
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #1
[erledigt]Mail anlegen sowie versenden nicht möglich.
Wie oben schon geschrieben gibt es Probleme mit der Mail.

Kurze Beschreibung.
Anlegen im Adminbereich funktioniert nur bei Mails mit Weiterleitung auf eine andere Mail.
Möchte ich eine Mail anlegen die über den Server verwaltet wird, wird folgende Nachricht in das Feld Status in der mysql Datenbank-Tabelle mysql_users eingetragen.

Quote:sys_command() | ERROR: External command 'no "xxxxxxxx" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u website.tld test && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2' returned '7' status !
Wenn ich den Befehl manuell in der Shell einfüge passiert garnichts und ich bin gezwungen die Verbindung zu trennen um weiter arbeiten zu können.

in /var/log/mail.warn
Quote:warning: do not list domain website.tld in BOTH mydestination and virtual

Wenn ich
Quote:postconf | grep "^my"
ausführe erhalte ich folgende Ausgabe.
Quote:mydestination = $myhostname, $mydomain
mydomain = website.tld.local
myhostname = website.tld
mynetworks = 127.0.0.1/32 xxx.xxx.xxx.xxx/32
mynetworks_style = host
myorigin = $myhostname

Wenn ich im Adminbereich unter dem ispCP Debugger bei einer Mail den Status auf change setze und die Anfrage ausführe wird in der /var/log/auth.log folgende Nachricht eingetragen

Quote:sasldblistusers2: unable to open Berkeley db /var/spool/postfix/etc/sasldb2: Bad file descriptor
Aug 4 23:01:03 RT0313 sasldblistusers2: _sasldb_getkeyhandle has failed
Aug 4 23:01:42 RT0313 sasldblistusers2: unable to open Berkeley db /var/spool/postfix/etc/sasldb2: Bad file descriptor
Aug 4 23:01:42 RT0313 sasldblistusers2: _sasldb_getkeyhandle has failed
Die Datei /var/spool/postfix/etc/sasldb2 existiert auf dem Server allerdings nicht.

Unter anderem habe ich heute folgendes HowTo angewandt.
http://www.isp-control.net/documentation...mega_rc3?s[]=maia
Den Server habe ich gestern neu aufgesetzt und die alten Daten (Datenbank, Webseiten) zurück gespielt. Den SMTP Port hatte ich bis heute über firehol gesperrt. Ist aber bereits wieder geöffnet.

Folges Fehleranayle bin ich nun auch durch gegangen.
http://www.isp-control.net/documentation...mains_sind
Hier ist aber alles richtig.

Noch einiege Infos zu dem verwendeten System.
Debian Lenny 5
ispCP Omega 1.0.0 Stable
rootServer

Ein grep -v „^#“ /etc/postfix/master.cf gibt folgendes aus.

Quote:#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# For AOL-Accounts
587 inet n - - - - smtpd
-o smtpd_client_restrictions=permit_sasl_authenticated,reject_unauth_destination
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
# ====================================================================
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright 2001-2006 by moleSoftware GmbH
# @copyright 2006-2008 by ispCP | http://isp-control.net
# @version SVN: $Id$
# @link http://isp-control.net
# @author ispCP Team
# ====================================================================
# AMaViS => Antivir / Antispam
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=/var/www/ispcp/engine/messager/ispcp-arpl-msgr

# TLS - Activate, if TLS is avaiable/used
smtps inet 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/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

Mit den Befehl postconf -n erhalte ich folgende Infos.

Quote: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
content_filter = amavis:[127.0.0.1]:10024
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/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = devoteem.de.local
myhostname = devoteem.de
mynetworks_style = host
myorigin = $myhostname
recipient_delimiter = +
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP ispCP 1.0.0 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_authenticated_header = 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:8
virtual_mailbox_base = /var/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

Ich sitz nun seit 16 Uhr an diesem Problem und so langsam ist der Wald zu nem Jungel geworden. Ich hoffe ihr könnt mir bei dem Problem behilflich sein. Sorry für den langen Text.

Wie immer bin ich jedem Dankbar für seine Hilfe.
(This post was last modified: 08-05-2009 09:27 PM by namdab.)
08-05-2009 07:48 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Mail anlegen sowie versenden nicht möglich.
Hi

etwas unterteilen wäre gut - es scheinen ja einige Probleme von anderen abzuhängen...

zum ersten: da scheint mir der Befehl falsch zu sein, statt no eher ein "echo"... ist bei dir der echo-Befehl falsch in der /etc/ispcp/ispcp.conf drin?
Code:
echo "xxxxxxxx" | /usr/sbin/saslpasswd2 -p -c -f /etc/sasldb2 -u website.tld test && /bin/cp /etc/sasldb2 /var/spool/postfix/etc/sasldb2

zum zweiten gibts schon genug Einträge im Forum und man muss es wohl schreien *NEHMT KEINE DOMAINNAMEN, WENN DAS SETUP EINEN HOSTNAMEN WILL - AUSSERDEM WIRD DA AUCH GEWARNT, DASS MAN EINEN ALLFÄLLIG EINGEGEBENEN DOMAINNAMEN DANN NICHT ALS KUNDENDOMAIN NUTZEN KANN*.... heieiei...

Das dritte (sasldb2) wird erledigt sein, sobald der erste Punkt klappt (da wird die sasldb2 dahin kopiert).

Gruss Joxi
08-05-2009 05:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #3
RE: Mail anlegen sowie versenden nicht möglich.
(08-05-2009 05:22 PM)joximu Wrote:  zum ersten: da scheint mir der Befehl falsch zu sein, statt no eher ein "echo"... ist bei dir der echo-Befehl falsch in der /etc/ispcp/ispcp.conf drin?

Ja hier stand einfach nur CMD_ECHO = no.
Hab dies durch CMD_ECHO = /bin/echo ersetzt.
So wie es in der Standartfile war.

Tja und zum Rest. Es gibt auch Tage wo man mal den dummen Menschen raus lässt.
Gestern war wohl solch ein Tag. Da hät ich mir ne Menge Zeit einsparen können.

Nun ja. Danke für den Hinweis.
08-05-2009 09:26 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: [erledigt]Mail anlegen sowie versenden nicht möglich.
schön, dass es wieder geht :-)

Gruss Joxi
08-05-2009 11:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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