Current time: 12-25-2024, 02:18 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[Solved] PostFix doesn't send or receive email
Author Message
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #1
[Solved] PostFix doesn't send or receive email
/var/log/maillog is empty, which is strange. The distro is freshly installed with ispCP panel only!

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/libexec/postfix

# Some common configuration parameters
inet_interfaces              = all
mynetworks_style             = host

myhostname                   = hosting-zone.eu
mydomain                     = hosting-zone.eu.local
myorigin                     = $myhostname

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

# Receiving messages parameters
mydestination                = $myhostname, $mydomain
append_dot_mydomain          = no
append_at_myorigin           = yes
local_transport              = local
virtual_transport            = virtual
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"

# 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          = 3001
virtual_uid_maps             = static:3001
virtual_gid_maps             = static:12

# SASL paramters
smtpd_sasl_auth_enable       = yes
smtpd_sasl_security_options  = noanonymous
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_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_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

Email from gmail daemon:
Code:
This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

    ceco91@hosting-zone.eu

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.1.1 <ceco91@hosting-zone.eu>: Recipient address rejected: User unknown in local recipient table (state 14).

  ----- Original message -----

MIME-Version: 1.0
Received: by 10.90.94.2 with SMTP id r2mr498481agb.62.1233264717188; Thu, 29
       Jan 2009 13:31:57 -0800 (PST)
Date: Thu, 29 Jan 2009 23:31:57 +0200
Message-ID: <62193a570901291331x6a8af7aco336003126a310b2b@mail.gmail.com>
Subject: asd
From: =?windows-1251?B?1uLl8u7s6PAgw+7x7+7k6O3u4g==?= <ceco91@gmail.com>
To: ceco91@hosting-zone.eu
Content-Type: multipart/alternative; boundary=00163630f5f961d04a0461a5d188

--00163630f5f961d04a0461a5d188
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

asdada

--00163630f5f961d04a0461a5d188
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


  ----- Message truncated -----

/var/log/maillog is empty.

PS -> ceco91@hosting-zone.eu exists!

I use CentOS 5.2.


Sorry that I posted 2 consecutive messages. But I fix sending message by executing this:
Code:
postfix stop
mkdir /var/spool/postfix/etc
grep smtp /etc/services > /var/spool/postfix/etc/services
cat /var/spool/postfix/etc/services
smtp 25/tcp mail
/etc/postfix/post-install upgrade-permissions upgrade-configuration create-missing
postfix start
postfix check
postfix flush
(This post was last modified: 02-01-2009 03:37 AM by rbtux.)
01-30-2009 07:46 AM
Find all posts by this user
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #2
RE: PostFix doesn't send or receive email
No ideas ?
01-31-2009 05:31 AM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: PostFix doesn't send or receive email
myhostname = hosting-zone.eu
mydomain = hosting-zone.eu.local
mydestination = $myhostname, $mydomain


therein lies the problem... you as moderator should have read that about 15 times... thats the minimal amount I answered that question.

the hosting-zone.eu must not be listed in mydestination when its configured as virtual domain (even postfix says exactly that in the log file)

set $myhostname to mail.hosting-zone.eu
set $mydomain = $myhostname

mail.hosting-zone.eu should point to the ip of your mailserver, and postmaster and abuse must be accepted (/etc/aliases may be suitable)...


Can someone add this to the faq? Its annoying answering the same question every week...
(This post was last modified: 01-31-2009 08:29 AM by rbtux.)
01-31-2009 08:28 AM
Visit this user's website Find all posts by this user
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #4
RE: PostFix doesn't send or receive email
Thank. I will talk to Docu Team to include this in FAQ.
(This post was last modified: 01-31-2009 07:00 PM by ceco91.)
01-31-2009 06:11 PM
Find all posts by this user
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #5
RE: PostFix doesn't send or receive email
But now only local mails are available. Other email are lost somewhere on the way! Any ideas ?

PostFix modificated code:
Code:
myhostname                   = mail.hosting-zone.eu
mydomain                     = $myhostname
myorigin                     = $myhostname

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

# Receiving messages parameters
mydestination                = $myhostname, $mydomain
(This post was last modified: 01-31-2009 07:19 PM by ceco91.)
01-31-2009 07:18 PM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: PostFix doesn't send or receive email
logs would be nice ;-)
01-31-2009 10:26 PM
Visit this user's website Find all posts by this user
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #7
RE: PostFix doesn't send or receive email
It's a long log so I will attach it Tongue


Attached File(s)
.txt  maillog.txt (Size: 191.91 KB / Downloads: 9)
01-31-2009 11:46 PM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #8
RE: PostFix doesn't send or receive email
please don't expect me to search to relevant infos in that file ;-)

Post me:
postconf | grep "^my"

then send an e-mail an post me the logs of the whole session:
you send an email to user@example.net

then you would grep "user@example.net" check for the correct date and you will find a message id after postfix/... : for example CF0213AB43

so you grep this messageid
grep "CF0213AB43" /var/log/main.info

et voilà you got all relevant info for this sending attempt.

I can only help you, when you provide me the essential infos...
02-01-2009 12:59 AM
Visit this user's website Find all posts by this user
ceco91 Offline
Moderator
*****
Moderators

Posts: 95
Joined: Jan 2009
Reputation: 0
Post: #9
RE: PostFix doesn't send or receive email
postconf | gerp "^my":
Code:
mydestination = $myhostname, $mydomain
mydomain = $myhostname
myhostname = mail.hosting-zone.eu
mynetworks = 127.0.0.1/32 212.70.143.153/32
mynetworks_style = host
myorigin = $myhostname

I can't receive email, not send email Smile
Postfix didn't write nothing since 8:06, now it is 17:17.
02-01-2009 01:16 AM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #10
RE: PostFix doesn't send or receive email
(02-01-2009 01:16 AM)ceco91 Wrote:  I can't receive email, not send email Smile
Postfix didn't write nothing since 8:06, now it is 17:17.

then there are no connections... Postfix always writes in to the logs if it does anything...
02-01-2009 01:18 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


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