/etc/aliases.db - invalid argument

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

/etc/aliases.db - invalid argument

v0id null
Tried to rebuild aliases.db with postalias, nada
Tried BDB v4.2 and v4.1, nada

FreeBSD 6.3
Postfix v2.5.4
bdb 4.1.25

Maillog:
Nov 18 23:43:01 sloshed postfix/smtpd[60929]: fatal: open database
/etc/aliases.db: Invalid argument
Nov 18 23:43:02 sloshed postfix/master[54129]: warning: process
/usr/local/libexec/postfix/smtpd pid 60929 exit status 1
Nov 18 23:43:02 sloshed postfix/master[54129]: warning:
/usr/local/libexec/postfix/smtpd: bad command startup -- throttling

postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = $myhostname, localhost
local_recipient_maps = $alias_maps
mail_owner = postfix
mailbox_transport = cyrus
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain, localhost, mail.$mydomain
mydomain = someDomain.com
myhostname = smtp.someDomain.com
mynetworks = 168.100.189.0/28, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
relay_domains = $mydestination $transport_maps
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = no
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile =
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/postfix.pem
smtpd_tls_key_file = /usr/local/etc/postfix/postfix.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/usr/local/etc/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains =
mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 10240000
virtual_mailbox_maps =
mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = cyrus

yeah, domain name altered

I've scoured google, newsgroups, mailing lists, all I get are people
saying they have the same problem, then others telling them to rebuild
aliases.db, then that seemed to solve the problem. No such luck for me
though ;(

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: /etc/aliases.db - invalid argument

Terry Carmen
v0id null wrote:

> Tried to rebuild aliases.db with postalias, nada
> Tried BDB v4.2 and v4.1, nada
>
> FreeBSD 6.3
> Postfix v2.5.4
> bdb 4.1.25
>
> Maillog:
> Nov 18 23:43:01 sloshed postfix/smtpd[60929]: fatal: open database
> /etc/aliases.db: Invalid argument
> Nov 18 23:43:02 sloshed postfix/master[54129]: warning: process
> /usr/local/libexec/postfix/smtpd pid 60929 exit status 1
> Nov 18 23:43:02 sloshed postfix/master[54129]: warning:
> /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
>
> postconf -n:
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> broken_sasl_auth_clients = yes
> command_directory = /usr/local/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/local/libexec/postfix
> debug_peer_level = 2
> html_directory = no
> inet_interfaces = $myhostname, localhost
> local_recipient_maps = $alias_maps
> mail_owner = postfix
> mailbox_transport = cyrus
> mailq_path = /usr/local/bin/mailq
> manpage_directory = /usr/local/man
> mydestination = $myhostname, localhost.$mydomain, localhost, mail.$mydomain
> mydomain = someDomain.com
> myhostname = smtp.someDomain.com
> mynetworks = 168.100.189.0/28, 127.0.0.0/8
> mynetworks_style = subnet
> myorigin = $mydomain
> newaliases_path = /usr/local/bin/newaliases
> queue_directory = /var/spool/postfix
> readme_directory = no
> recipient_delimiter = +
> relay_domains = $mydestination $transport_maps
> sample_directory = /usr/local/etc/postfix
> sendmail_path = /usr/local/sbin/sendmail
> setgid_group = maildrop
> smtp_tls_note_starttls_offer = no
> smtp_use_tls = yes
> smtpd_banner = $myhostname ESMTP $mail_name
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated, reject_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $mydomain
> smtpd_sasl_security_options = noanonymous
> smtpd_tls_CAfile =
> smtpd_tls_auth_only = yes
> smtpd_tls_cert_file = /usr/local/etc/postfix/postfix.pem
> smtpd_tls_key_file = /usr/local/etc/postfix/postfix.pem
> smtpd_tls_loglevel = 1
> smtpd_tls_received_header = yes
> smtpd_tls_session_cache_database = btree:/usr/local/etc/postfix/smtpd_scache
> smtpd_tls_session_cache_timeout = 3600s
> smtpd_use_tls = yes
> soft_bounce = no
> tls_random_source = dev:/dev/urandom
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
> virtual_mailbox_domains =
> mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
> virtual_mailbox_limit = 10240000
> virtual_mailbox_maps =
> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
> virtual_transport = cyrus
>
> yeah, domain name altered
>
> I've scoured google, newsgroups, mailing lists, all I get are people
> saying they have the same problem, then others telling them to rebuild
> aliases.db, then that seemed to solve the problem. No such luck for me
> though ;(
>
> Thanks in advance
>  
Are you certain that your version of postfix supports Berkley db files?

Try:

postconf -m |grep hash

Terry




Reply | Threaded
Open this post in threaded view
|

Re: /etc/aliases.db - invalid argument

v0id null
Well, no. But when I recompiled postfix, the freebsd port grabbed db
4.1 and installed it

Hash shows up in postconf -m
$ postconf -m
btree
cidr
environ
hash
mysql
pcre
proxy
regexp
static
unix


On Tue, Nov 18, 2008 at 11:45 PM, Terry Carmen <[hidden email]> wrote:

> v0id null wrote:
>>
>> Tried to rebuild aliases.db with postalias, nada
>> Tried BDB v4.2 and v4.1, nada
>>
>> FreeBSD 6.3
>> Postfix v2.5.4
>> bdb 4.1.25
>>
>> Maillog:
>> Nov 18 23:43:01 sloshed postfix/smtpd[60929]: fatal: open database
>> /etc/aliases.db: Invalid argument
>> Nov 18 23:43:02 sloshed postfix/master[54129]: warning: process
>> /usr/local/libexec/postfix/smtpd pid 60929 exit status 1
>> Nov 18 23:43:02 sloshed postfix/master[54129]: warning:
>> /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
>>
>> postconf -n:
>> alias_database = hash:/etc/aliases
>> alias_maps = hash:/etc/aliases
>> broken_sasl_auth_clients = yes
>> command_directory = /usr/local/sbin
>> config_directory = /etc/postfix
>> daemon_directory = /usr/local/libexec/postfix
>> debug_peer_level = 2
>> html_directory = no
>> inet_interfaces = $myhostname, localhost
>> local_recipient_maps = $alias_maps
>> mail_owner = postfix
>> mailbox_transport = cyrus
>> mailq_path = /usr/local/bin/mailq
>> manpage_directory = /usr/local/man
>> mydestination = $myhostname, localhost.$mydomain, localhost,
>> mail.$mydomain
>> mydomain = someDomain.com
>> myhostname = smtp.someDomain.com
>> mynetworks = 168.100.189.0/28, 127.0.0.0/8
>> mynetworks_style = subnet
>> myorigin = $mydomain
>> newaliases_path = /usr/local/bin/newaliases
>> queue_directory = /var/spool/postfix
>> readme_directory = no
>> recipient_delimiter = +
>> relay_domains = $mydestination $transport_maps
>> sample_directory = /usr/local/etc/postfix
>> sendmail_path = /usr/local/sbin/sendmail
>> setgid_group = maildrop
>> smtp_tls_note_starttls_offer = no
>> smtp_use_tls = yes
>> smtpd_banner = $myhostname ESMTP $mail_name
>> smtpd_recipient_restrictions = permit_mynetworks,
>> permit_sasl_authenticated, reject_unauth_destination
>> smtpd_sasl_auth_enable = yes
>> smtpd_sasl_local_domain = $mydomain
>> smtpd_sasl_security_options = noanonymous
>> smtpd_tls_CAfile =
>> smtpd_tls_auth_only = yes
>> smtpd_tls_cert_file = /usr/local/etc/postfix/postfix.pem
>> smtpd_tls_key_file = /usr/local/etc/postfix/postfix.pem
>> smtpd_tls_loglevel = 1
>> smtpd_tls_received_header = yes
>> smtpd_tls_session_cache_database =
>> btree:/usr/local/etc/postfix/smtpd_scache
>> smtpd_tls_session_cache_timeout = 3600s
>> smtpd_use_tls = yes
>> soft_bounce = no
>> tls_random_source = dev:/dev/urandom
>> unknown_local_recipient_reject_code = 550
>> virtual_alias_maps =
>> mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
>> virtual_mailbox_domains =
>> mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
>> virtual_mailbox_limit = 10240000
>> virtual_mailbox_maps =
>> mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
>> virtual_transport = cyrus
>>
>> yeah, domain name altered
>>
>> I've scoured google, newsgroups, mailing lists, all I get are people
>> saying they have the same problem, then others telling them to rebuild
>> aliases.db, then that seemed to solve the problem. No such luck for me
>> though ;(
>>
>> Thanks in advance
>>
>
> Are you certain that your version of postfix supports Berkley db files?
>
> Try:
>
> postconf -m |grep hash
>
> Terry
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: /etc/aliases.db - invalid argument

Victor Duchovni
In reply to this post by v0id null
On Tue, Nov 18, 2008 at 11:33:28PM -0500, v0id null wrote:

> Tried to rebuild aliases.db with postalias, nada
> Tried BDB v4.2 and v4.1, nada

Please expand "nada" into a meaningful english sentence. Usually "invalid
argument" in this context means that the ".db" file is not a compatible
database built with the same version of Berkeley DB. So either "postalias"
is not from the same Postfix version as "smtpd", or you are not providing
sufficient detail to expose the real problem.

> FreeBSD 6.3
> Postfix v2.5.4
> bdb 4.1.25
>
> Maillog:
> Nov 18 23:43:01 sloshed postfix/smtpd[60929]: fatal: open database
> /etc/aliases.db: Invalid argument
> Nov 18 23:43:02 sloshed postfix/master[54129]: warning: process
> /usr/local/libexec/postfix/smtpd pid 60929 exit status 1
> Nov 18 23:43:02 sloshed postfix/master[54129]: warning:
> /usr/local/libexec/postfix/smtpd: bad command startup -- throttling

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Reply | Threaded
Open this post in threaded view
|

Re: /etc/aliases.db - invalid argument

v0id null
I put the logs there for you to see so it got expanded. Just gotta
read man... gotta read! =]

the problem was that two newaliases existed on the system, and one of
them was wrong, and my path settings meant the wrong one was getting
called. WHY this happened I don't know, but after 4 days of searching
through the internet and not finding anything and being forced to use
gmail's interface, I couldn't care less. It works finally, and I'm
happy. And hopefully these messages will show up in someone's searches
if they encounter the same problem since it seemed that everyone,
everywhere, under every circumstance that this error would show up, no
one thought that there would be two newaliases on the same system. So
if I was able to make that happen, there's gotta be someone else out
there who did it too hehe.

On Wed, Nov 19, 2008 at 12:51 AM, Victor Duchovni
<[hidden email]> wrote:

> On Tue, Nov 18, 2008 at 11:33:28PM -0500, v0id null wrote:
>
>> Tried to rebuild aliases.db with postalias, nada
>> Tried BDB v4.2 and v4.1, nada
>
> Please expand "nada" into a meaningful english sentence. Usually "invalid
> argument" in this context means that the ".db" file is not a compatible
> database built with the same version of Berkeley DB. So either "postalias"
> is not from the same Postfix version as "smtpd", or you are not providing
> sufficient detail to expose the real problem.
>
>> FreeBSD 6.3
>> Postfix v2.5.4
>> bdb 4.1.25
>>
>> Maillog:
>> Nov 18 23:43:01 sloshed postfix/smtpd[60929]: fatal: open database
>> /etc/aliases.db: Invalid argument
>> Nov 18 23:43:02 sloshed postfix/master[54129]: warning: process
>> /usr/local/libexec/postfix/smtpd pid 60929 exit status 1
>> Nov 18 23:43:02 sloshed postfix/master[54129]: warning:
>> /usr/local/libexec/postfix/smtpd: bad command startup -- throttling
>
> --
>        Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:[hidden email]?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.
>