Hi
I just moved from cyrus over so it isn't a total new
install on a
blank machine witch makes thinks a bit harder. I am no
expert by any
means have done my cyrus postfix etc. installation by
combining a few
howtos from the net. It was working fine for a while but I
just ....
hmm lets say don't like cyrus anymore.
I got dbMail working with local mail I can log in to webmail
and can
send from shell with 'mail -v mailuser'
I installed via debian stable from
deb http://debian.nfgd.net/
debian stable main
and have postfix-mysql 2.1.5-9
I have in my main.cf file, mydestination and
relay_recipient_maps do I
have to delete one of those. It kinda doesn't make sense
like this.
Below are my errors one has to do with dbmail_alias.cf: bad
string length.
I can't see what's wrong here (This is from your wiki)
=================================
# cat dbmail_alias.cf
user = xxxx
password = xxxx
dbname = dbmail
hosts = localhost
#postfix 2.2.X version only
query = SELECT alias FROM dbmail_aliases WHERE alias='%s'
==================================
The other one is connect to transport smtp-amavis
As per your wiki manual I replaced
content_filter = amavis:[127.0.0.1]:10024
with
content_filter = smtp-amavis:[127.0.0.1]:10024
but that didn't work so i went back to how it was and
restarted
postfix however that error just doesn't go away.
Below is a list of my errors and my postfix files.
Thanks
Demi
====================
Apr 26 20:13:06 safe postfix/smtpd[3882]: fatal:
/etc/postfix/dbmail_alias.cf: bad string length 0 < 1:
table =
Apr 26 20:13:07 safe postfix/master[3825]: warning: process
/usr/lib/postfix/smtpd pid 3882 exit status 1
Apr 26 20:13:07 safe postfix/master[3825]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 26 20:13:51 safe postfix/qmgr[3828]: warning: connect to
transport
smtp-amavis: No such file or directory
Apr 26 20:14:07 safe postfix/smtpd[3886]: fatal:
/etc/postfix/dbmail_alias.cf: bad string length 0 < 1:
table =
Apr 26 20:14:08 safe postfix/master[3825]: warning: process
/usr/lib/postfix/smtpd pid 3886 exit status 1
Apr 26 20:14:08 safe postfix/master[3825]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
Apr 26 20:14:51 safe postfix/qmgr[3828]: warning: connect to
transport
smtp-amavis: No such file or directory
================================
My main.cf file
================================
#For Testing only*************************
#soft_bounce = yes
# Testing end *****************************
manpage_directory = /usr/local/man
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
disable_vrfy_command = yes
content_filter = amavis:[127.0.0.1]:10024
#mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
transport_maps = hash:/etc/postfix/transport
smtpd_helo_required = yes
best_mx_transport = local
ignore_mx_lookup_error = yes
#myhostname = safe.pzzazz.com
myorigin = /etc/mailname
mydestination = $myhostname $mydomain mail.$mydomain
mail2.$mydomain
localhost.$mydomain localhost
mysql:/etc/postfix/mysql-mydestination.cf
mynetworks = 127.0.0.0/8
#inet_interfaces = localhost, 72.232.44.106
mailbox_size_limit = 0
recipient_delimiter = +
#virtual_alias_maps = ldap:PostfixUser
#PostfixUser_server_host = 127.0.0.1
#PostfixUser_server_port = 389
#PostfixUser_search_base = ou=People,dc=pzzazz,dc=com
#PostfixUser_scope = sub
#PostfixUser_version = 3
#PostfixUser_query_filter = (mailacceptinggeneralid=%s)
#PostfixUser_query_filter =
(&(mailacceptinggeneralid=%s)(!(|(maildrop="*|*&q
uot;)(maildrop="* ")(mai
ldrop="*/*"))))
#PostfixUser_query_filter = (maildrop=%s)
#PostfixUser_result_attribute = maildrop
#SMTP TLS
#
#smtpd_use_tls = yes
#smtp_use_tls = yes
#smtpd_tls_auth_only = yes
#smtpd_tls_key_file = /etc/postfix/tls/postfix.key
#smtpd_tls_cert_file = /etc/postfix/tls/postfix.cert
#smtpd_tls_CAfile = /etc/postfix/tls/ca-cert.pem
#smtpd_tls_loglevel = 3
#smtpd_tls_received_header = yes
#smtpd_tls_session_cache_timeout = 3600s
#tls_random_source = dev:/dev/urandom
#smtp_tls_note_starttls_offer = yes
relay_domains =
pzzazz.com,
orces.com
relay_recipient_maps = mysql:/etc/postfix/dbmail_alias.cf
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
check_helo_access
hash:/etc/postfix/helo_access,
check_sender_access
hash:/etc/postfix/sender_access,
check_recipient_access
hash:/etc/postfix/recipient_access,
reject_rbl_client zombie.dnsbl.sorbs.net,
reject_rbl_client relays.ordb.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client blackholes.mail-abuse.org,
reject_rbl_client relays.mail-abuse.org,
permit
# SASL SUPPORT FOR SERVERS
#
# The following options set parameters needed by Postfix to
enable
# Cyrus-SASL support for authentication of mail servers.
# http://postfix.state-of-mind.
de/patrick.koetter/smtpauth/smtp_auth_mailservers.html
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
masquerade_domains = safe.pzzazz.com pzzazz.com
# mysql stuff
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf
#Address Rewriting
canonical_maps =
mysql:/etc/postfix/mysql-canonical.cf
mydestination_maps =
mysql:/etc/postfix/mysql-mydestination.cf
relocated_maps = hash:/etc/postfix/relocated
================================
My master,cf file
================================
#
============================================================
=
# service type private unpriv chroot wakeup maxproc
command
# (yes) (yes) (yes) (never) (100)
#
============================================================
=
smtp inet n - n - -
smtpd -o
smtpd_sasl_auth_enable=yes
pickup fifo n - n 60 1
pickup
cleanup unix n - n - 0
cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - -
trivial-rewrite
bounce unix - - n - 0
bounce
defer unix - - n - 0
bounce
flush unix n - n 1000? 0
flush
proxymap unix - - n - -
proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - -
showq
error unix - - n - -
error
local unix - n n - -
local
virtual unix - n n - -
virtual
lmtp unix - - n - - lmtp
policy unix - n n - -
spawn
user=polw argv=/usr/bin/perl
/usr/lib/postfix/policyd-weight
amavis unix - - n - 5 lmtp
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d
$
#cyrus unix - n n - -
pipe
# flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m
"$" $
dbmail unix - n n - - pipe
flags= user=dbmail argv=/usr/sbin/dbmail-smtp -d
$
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d
-t$nexthop
-f$sender $recipient
scalemail-backend unix - n n - 2
pipe
flags=R user=scalemail
argv=/usr/lib/scalemail/bin/scalemail-store
$ $ $
smtps inet n - n - -
smtpd -o
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
587 inet n - n - -
smtpd -o
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
127.0.0.1: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 mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
--
Demi
,
.--'|} "Goodbye England's rose,
/ /}} may you ever grow in our hearts.
.=\.--'`\} You were the grace that placed itself
//` '---./` where lives were torn apart.
|| /|
\\| | You called out to our country,
|\_\\/ and you whispered to those in pain.
\__/\\ Now you belong to heaven,
\\ and the stars spell out your
name."
_______________________________________________
Dbmail mailing list
Dbmail dbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
|