Current time: 05-02-2024, 01:25 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Can't send Email via smtp
Author Message
Catscrash Offline
Junior Member
*

Posts: 27
Joined: Oct 2008
Reputation: 0
Post: #1
[SOLVED] Can't send Email via smtp
Hi, when trying to send Email via smtp i get following error

Code:
Oct  6 15:35:10 vs161143 postfix/smtpd[9281]: fatal: dict_open: unsupported dictionary type: inet:  Is the postfix-inet package installed?


when i try sending via
Code:
echo "testmail" | mail -s test catscrash@domain.tld

thanks for any help

this is my main.cf:

Code:
#
# 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
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​

# Postfix directory settings; These are critical for normal Postfix MTA functionallity
command_directory            = /usr/sbin
daemon_directory             = /usr/lib/postfix

# Some common configuration parameters
inet_interfaces              = all
mynetworks_style             = host

myhostname                   = vs161143.vserver.de
mydomain                     = vs161143.vserver.de.local
myorigin                     = $myhostname

smtpd_banner                 = $myhostname ESMTP ispCP 1.0.0 RC6 OMEGA Managed
setgid_group                 = postdrop

# Receiving messages parameters
mydestination                = $myhostname, $mydomain
append_dot_mydomain          = no
append_at_myorigin           = yes
local_transport              = local
virtual_transport            = dovecot
transport_maps               = hash:/etc/postfix/ispcp/transport
alias_maps                   = hash:/etc/aliases
alias_database               = hash:/etc/aliases

# Delivering local messages parameters
mail_spool_directory         = /var/mail

# Mailboxquota
# => 0 for unlimited
# => 104857600 for 100 MB
mailbox_size_limit           = 0
mailbox_command              = procmail -a "$EXTENSION"

dovecot_destination_recipient_limit = 1

# Message size limit
# => 0 for unlimited
# => 104857600 for 100 MB
message_size_limit           = 0

biff                         = no
recipient_delimiter          = +

local_destination_recipient_limit = 1
local_recipient_maps         = unix:passwd.byname $alias_database

# ispCP Autoresponder parameters
ispcp-arpl_destination_recipient_limit = 1

# Delivering virtual messages parameters
virtual_mailbox_base         = /var/mail/virtual
virtual_mailbox_limit        = 0

virtual_mailbox_domains      = hash:/etc/postfix/ispcp/domains
virtual_mailbox_maps         = hash:/etc/postfix/ispcp/mailboxes

virtual_alias_maps           = hash:/etc/postfix/ispcp/aliases

virtual_minimum_uid          = 1000
virtual_uid_maps             = static:1000
virtual_gid_maps             = static:8

# SASL paramters
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
#smtpd_sasl_local_domain      =
broken_sasl_auth_clients = yes

smtpd_helo_required          = yes

smtpd_helo_restrictions      = permit_mynetworks,
                               permit_sasl_authenticated,
                               reject_invalid_helo_hostname,
                               reject_non_fqdn_helo_hostname

smtpd_sender_restrictions    = reject_non_fqdn_sender,
                               reject_unknown_sender_domain,
                               permit_mynetworks,
                               permit_sasl_authenticated

smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unknown_recipient_domain permit_mynetworks permit_sasl_authenticated reject_unlisted_recipient check_policy_service inet:127.0.0.1:12525 inet:127.0.0.1:60000 permit

smtpd_data_restrictions      = reject_multi_recipient_bounce,
                               reject_unauth_pipelining

# TLS parameters; activate, if avaible/used
#smtpd_use_tls               = yes
#smtpd_tls_loglevel          = 2
#smtpd_tls_cert_file         = /etc/postfix/cert.pem
#smtpd_tls_key_file          = /etc/postfix/privkey.pem
#smtpd_tls_auth_only         = no
#smtpd_tls_received_header   = yes

# AMaViS parameters; activate, if available/used
content_filter               = amavis:[127.0.0.1]:10024

# Quota support; activate, if available/used
#virtual_create_maildirsize     = yes
#virtual_mailbox_extended       = yes
#virtual_mailbox_limit_maps     = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message  = "The user you're trying to reach is over mailbox quota."
#virtual_overquota_bounce       = yes

master.cf:
Code:
#
# 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

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


# 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}
(This post was last modified: 03-16-2009 07:26 PM by BeNe.)
10-06-2008 11:43 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Can't send Email via smtp
You use Dovecot with AMaVis (Maia) ??

Greez BeNe
10-07-2008 12:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Catscrash Offline
Junior Member
*

Posts: 27
Joined: Oct 2008
Reputation: 0
Post: #3
RE: Can't send Email via smtp
yes, receiving works just fine and via webmail (squirrel or roundcube) sending also works fine... just via smtp doesn't work...
i tried removing this part from master.cf but it didn't help

Code:
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
(This post was last modified: 10-07-2008 12:44 AM by Catscrash.)
10-07-2008 12:38 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Can't send Email via smtp
Quote:yes, receiving works just fine and via webmail (squirrel or roundcube) sending also works fine... just via smtp doesn't work...
Sending via Webmail works fine ???
And what is then the Problem ?

Greez BeNe
10-07-2008 12:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Catscrash Offline
Junior Member
*

Posts: 27
Joined: Oct 2008
Reputation: 0
Post: #5
RE: Can't send Email via smtp
sending via thunderbird / outlook doesn't work...

mail.log:

Code:
Oct  6 16:58:14 vs161143 postfix/smtpd[26043]: fatal: dict_open: unsupported dictionary type: inet:  Is the postfix-inet package installed?
Oct  6 16:58:15 vs161143 postfix/master[14111]: warning: process /usr/lib/postfix/smtpd pid 26043 exit status 1
Oct  6 16:58:15 vs161143 postfix/master[14111]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

in my first post i wanted to say:

Quote:when i try sending via
Code:
echo "testmail" | mail -s test catscrash@domain.tld
it works fine

i forgot the important "it works fine" ;-) its just via thunderbird / outlook etc. that doesn't work
(This post was last modified: 10-07-2008 01:00 AM by Catscrash.)
10-07-2008 12:59 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Can't send Email via smtp
Ok so generall it works, fine!
Code:
Is the postfix-inet package installed?

Greez BeNe
10-07-2008 01:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Catscrash Offline
Junior Member
*

Posts: 27
Joined: Oct 2008
Reputation: 0
Post: #7
RE: Can't send Email via smtp
there is no postfix-inet package

catscrash@vs161143:~$ sudo apt-get install postfix
postfix postfix-dev postfix-gld postfix-mysql postfix-pgsql postfix-smtpguard
postfix-cdb postfix-doc postfix-ldap postfix-pcre postfix-policyd postfix-tls
10-07-2008 01:07 AM
Find all posts by this user Quote this message in a reply
Gymnogyp Offline
Junior Member
*

Posts: 20
Joined: Nov 2008
Reputation: 0
Post: #8
RE: Can't send Email via smtp
Has anyone figured this one out, cause I am having the exact same prob.
11-10-2008 07:22 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: #9
RE: Can't send Email via smtp
try this:

if you have long lines and you put a linefeed in between then dont start the new line on position 0!!

wrong:
Code:
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unknown_recipient_domain permit_mynetworks permit_sasl_authenticated reject_unlisted_recipient check_policy_service inet:127.0.0.1:12525 inet:127.0.0.1:60000 permit

correct:
Code:
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unknown_recipient_domain permit_mynetworks
              permit_sasl_authenticated reject_unlisted_recipient
              check_policy_service inet:127.0.0.1:12525 inet:127.0.0.1:60000 permit
or better put every complete expression on one line - as in the ispcp default main.cf....


AND (more important):
don't just add a second service to the check_policy_service

wrong:
Code:
check_policy_service inet:127.0.0.1:12525 inet:127.0.0.1:60000 permit

correct:
Code:
check_policy_service inet:127.0.0.1:12525
              check_policy_service inet:127.0.0.1:60000 permit

/J
(This post was last modified: 11-10-2008 08:33 PM by joximu.)
11-10-2008 08:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Gymnogyp Offline
Junior Member
*

Posts: 20
Joined: Nov 2008
Reputation: 0
Post: #10
RE: Can't send Email via smtp
OK... this still isn't working. I can send email from web mail, but not from Thunderbird or Outlook.
11-11-2008 09:36 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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