Unable to deliver mail in CentOS through Postfix controlled by Plesk panel.

Dear support,
I want to send mail through Postfix on my user ID abc@domain.com but unable to receive mail due to the error in the attached file. I can able to sendmail through telnet but when I use a PHP script, it get this error. Please help.
Error.txt
LVL 12
ibu1System AdministratorAsked:
Who is Participating?
 
Zephyr ICTConnect With a Mentor Cloud ArchitectCommented:
A solution might be to comment out these lines:

virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains\par
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual\par
virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox\par

Open in new window


Like so:

#virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains\par
#virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual\par
#virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox\par

Open in new window


And restart postfix ... Test again.
0
 
Zephyr ICTCloud ArchitectCommented:
Does the address brahimb@hassanabul.com exist?

It's could be a problem in postfix... Can you post the config of postfix? (usually to be found here:  /etc/postfix/main.cf ) ...
0
 
ibu1System AdministratorAuthor Commented:
Please check the attached file for main.cf configuration.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ibu1System AdministratorAuthor Commented:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\lang1033\f0\fs20 # Global Postfix configuration file. This file lists only a subset\par
# of all parameters. For the syntax, and for a complete parameter\par
# list, see the postconf(5) manual page (command: "man 5 postconf").\par
#\par
# For common configuration examples, see BASIC_CONFIGURATION_README\par
# and STANDARD_CONFIGURATION_README. To find these documents, use\par
# the command "postconf html_directory readme_directory", or go to\par
# http://www.postfix.org/.\par
#\par
# For best results, change no more than 2-3 parameters at a time,\par
# and test if Postfix still works after every change.\par
\par
# SOFT BOUNCE\par
#\par
# The soft_bounce parameter provides a limited safety net for\par
# testing.  When soft_bounce is enabled, mail will remain queued that\par
# would otherwise bounce. This parameter disables locally-generated\par
# bounces, and prevents the SMTP server from rejecting mail permanently\par
# (by changing 5xx replies into 4xx replies). However, soft_bounce\par
# is no cure for address rewriting mistakes or mail routing mistakes.\par
#\par
#soft_bounce = no\par
\par
# LOCAL PATHNAME INFORMATION\par
#\par
# The queue_directory specifies the location of the Postfix queue.\par
# This is also the root directory of Postfix daemons that run chrooted.\par
# See the files in examples/chroot-setup for setting up Postfix chroot\par
# environments on different UNIX systems.\par
#\par
queue_directory = /var/spool/postfix\par
\par
# The command_directory parameter specifies the location of all\par
# postXXX commands.\par
#\par
command_directory = /usr/sbin\par
\par
# The daemon_directory parameter specifies the location of all Postfix\par
# daemon programs (i.e. programs listed in the master.cf file). This\par
# directory must be owned by root.\par
#\par
daemon_directory = /usr/libexec/postfix\par
\par
# The data_directory parameter specifies the location of Postfix-writable\par
# data files (caches, random numbers). This directory must be owned\par
# by the mail_owner account (see below).\par
#\par
data_directory = /var/lib/postfix\par
\par
# QUEUE AND PROCESS OWNERSHIP\par
#\par
# The mail_owner parameter specifies the owner of the Postfix queue\par
# and of most Postfix daemon processes.  Specify the name of a user\par
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS\par
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In\par
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED\par
# USER.\par
#\par
mail_owner = postfix\par
\par
# The default_privs parameter specifies the default rights used by\par
# the local delivery agent for delivery to external file or command.\par
# These rights are used in the absence of a recipient user context.\par
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.\par
#\par
#default_privs = nobody\par
\par
# INTERNET HOST AND DOMAIN NAMES\par
# \par
# The myhostname parameter specifies the internet hostname of this\par
# mail system. The default is to use the fully-qualified domain name\par
# from gethostname(). $myhostname is used as a default value for many\par
# other configuration parameters.\par
#\par
#myhostname = host.domain.tld\par
#myhostname = virtual.domain.tld\par
\par
# The mydomain parameter specifies the local internet domain name.\par
# The default is to use $myhostname minus the first component.\par
# $mydomain is used as a default value for many other configuration\par
# parameters.\par
#\par
#mydomain = domain.tld\par
\par
# SENDING MAIL\par
# \par
# The myorigin parameter specifies the domain that locally-posted\par
# mail appears to come from. The default is to append $myhostname,\par
# which is fine for small sites.  If you run a domain with multiple\par
# machines, you should (1) change this to $mydomain and (2) set up\par
# a domain-wide alias database that aliases each user to\par
# user@that.users.mailhost.\par
#\par
# For the sake of consistency between sender and recipient addresses,\par
# myorigin also specifies the default domain name that is appended\par
# to recipient addresses that have no @domain part.\par
#\par
#myorigin = $myhostname\par
#myorigin = $mydomain\par
\par
# RECEIVING MAIL\par
\par
# The inet_interfaces parameter specifies the network interface\par
# addresses that this mail system receives mail on.  By default,\par
# the software claims all active interfaces on the machine. The\par
# parameter also controls delivery of mail to user@[ip.address].\par
#\par
# See also the proxy_interfaces parameter, for network addresses that\par
# are forwarded to us via a proxy or network address translator.\par
#\par
# Note: you need to stop/start Postfix when this parameter changes.\par
#\par
#inet_interfaces = all\par
#inet_interfaces = $myhostname\par
#inet_interfaces = $myhostname, localhost\par
inet_interfaces = all\par
\par
# Enable IPv4, and IPv6 if supported\par
inet_protocols = all\par
\par
# The proxy_interfaces parameter specifies the network interface\par
# addresses that this mail system receives mail on by way of a\par
# proxy or network address translation unit. This setting extends\par
# the address list specified with the inet_interfaces parameter.\par
#\par
# You must specify your proxy/NAT addresses when your system is a\par
# backup MX host for other domains, otherwise mail delivery loops\par
# will happen when the primary MX host is down.\par
#\par
#proxy_interfaces =\par
#proxy_interfaces = 1.2.3.4\par
\par
# The mydestination parameter specifies the list of domains that this\par
# machine considers itself the final destination for.\par
#\par
# These domains are routed to the delivery agent specified with the\par
# local_transport parameter setting. By default, that is the UNIX\par
# compatible delivery agent that lookups all recipients in /etc/passwd\par
# and /etc/aliases or their equivalent.\par
#\par
# The default is $myhostname + localhost.$mydomain.  On a mail domain\par
# gateway, you should also include $mydomain.\par
#\par
# Do not specify the names of virtual domains - those domains are\par
# specified elsewhere (see VIRTUAL_README).\par
#\par
# Do not specify the names of domains that this machine is backup MX\par
# host for. Specify those names via the relay_domains settings for\par
# the SMTP server, or use permit_mx_backup if you are lazy (see\par
# STANDARD_CONFIGURATION_README).\par
#\par
# The local machine is always the final destination for mail addressed\par
# to user@[the.net.work.address] of an interface that the mail system\par
# receives mail on (see the inet_interfaces parameter).\par
#\par
# Specify a list of host or domain names, /file/name or type:table\par
# patterns, separated by commas and/or whitespace. A /file/name\par
# pattern is replaced by its contents; a type:table is matched when\par
# a name matches a lookup key (the right-hand side is ignored).\par
# Continue long lines by starting the next line with whitespace.\par
#\par
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".\par
#\par
mydestination = localhost.$mydomain, localhost, localhost.localdomain\par
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain\par
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,\par
#\tab mail.$mydomain, www.$mydomain, ftp.$mydomain\par
\par
# REJECTING MAIL FOR UNKNOWN LOCAL USERS\par
#\par
# The local_recipient_maps parameter specifies optional lookup tables\par
# with all names or addresses of users that are local with respect\par
# to $mydestination, $inet_interfaces or $proxy_interfaces.\par
#\par
# If this parameter is defined, then the SMTP server will reject\par
# mail for unknown local users. This parameter is defined by default.\par
#\par
# To turn off local recipient checking in the SMTP server, specify\par
# local_recipient_maps = (i.e. empty).\par
#\par
# The default setting assumes that you use the default Postfix local\par
# delivery agent for local delivery. You need to update the\par
# local_recipient_maps setting if:\par
#\par
# - You define $mydestination domain recipients in files other than\par
#   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.\par
#   For example, you define $mydestination domain recipients in    \par
#   the $virtual_mailbox_maps files.\par
#\par
# - You redefine the local delivery agent in master.cf.\par
#\par
# - You redefine the "local_transport" setting in main.cf.\par
#\par
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"\par
#   feature of the Postfix local delivery agent (see local(8)).\par
#\par
# Details are described in the LOCAL_RECIPIENT_README file.\par
#\par
# Beware: if the Postfix SMTP server runs chrooted, you probably have\par
# to access the passwd file via the proxymap service, in order to\par
# overcome chroot restrictions. The alternative, having a copy of\par
# the system passwd file in the chroot jail is just not practical.\par
#\par
# The right-hand side of the lookup tables is conveniently ignored.\par
# In the left-hand side, specify a bare username, an @domain.tld\par
# wild-card, or specify a user@domain.tld address.\par
# \par
#local_recipient_maps = unix:passwd.byname $alias_maps\par
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps\par
#local_recipient_maps =\par
\par
# The unknown_local_recipient_reject_code specifies the SMTP server\par
# response code when a recipient domain matches $mydestination or\par
# $\{proxy,inet\}_interfaces, while $local_recipient_maps is non-empty\par
# and the recipient address or address local-part is not found.\par
#\par
# The default setting is 550 (reject mail) but it is safer to start\par
# with 450 (try again later) until you are certain that your\par
# local_recipient_maps settings are OK.\par
#\par
unknown_local_recipient_reject_code = 550\par
\par
# TRUST AND RELAY CONTROL\par
\par
# The mynetworks parameter specifies the list of "trusted" SMTP\par
# clients that have more privileges than "strangers".\par
#\par
# In particular, "trusted" SMTP clients are allowed to relay mail\par
# through Postfix.  See the smtpd_recipient_restrictions parameter\par
# in postconf(5).\par
#\par
# You can specify the list of "trusted" network addresses by hand\par
# or you can let Postfix do it for you (which is the default).\par
#\par
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP\par
# clients in the same IP subnetworks as the local machine.\par
# On Linux, this does works correctly only with interfaces specified\par
# with the "ifconfig" command.\par
# \par
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP\par
# clients in the same IP class A/B/C networks as the local machine.\par
# Don't do this with a dialup site - it would cause Postfix to "trust"\par
# your entire provider's network.  Instead, specify an explicit\par
# mynetworks list by hand, as described below.\par
#  \par
# Specify "mynetworks_style = host" when Postfix should "trust"\par
# only the local machine.\par
# \par
#mynetworks_style = class\par
#mynetworks_style = subnet\par
#mynetworks_style = host\par
\par
# Alternatively, you can specify the mynetworks list by hand, in\par
# which case Postfix ignores the mynetworks_style setting.\par
#\par
# Specify an explicit list of network/netmask patterns, where the\par
# mask specifies the number of bits in the network part of a host\par
# address.\par
#\par
# You can also specify the absolute pathname of a pattern file instead\par
# of listing the patterns here. Specify type:table for table-based lookups\par
# (the value on the table right-hand side is not used).\par
#\par
#mynetworks = 168.100.189.0/28, 127.0.0.0/8\par
#mynetworks = $config_directory/mynetworks\par
#mynetworks = hash:/etc/postfix/network_table\par
\par
# The relay_domains parameter restricts what destinations this system will\par
# relay mail to.  See the smtpd_recipient_restrictions description in\par
# postconf(5) for detailed information.\par
#\par
# By default, Postfix relays mail\par
# - from "trusted" clients (IP address matches $mynetworks) to any destination,\par
# - from "untrusted" clients to destinations that match $relay_domains or\par
#   subdomains thereof, except addresses with sender-specified routing.\par
# The default relay_domains value is $mydestination.\par
# \par
# In addition to the above, the Postfix SMTP server by default accepts mail\par
# that Postfix is final destination for:\par
# - destinations that match $inet_interfaces or $proxy_interfaces,\par
# - destinations that match $mydestination\par
# - destinations that match $virtual_alias_domains,\par
# - destinations that match $virtual_mailbox_domains.\par
# These destinations do not need to be listed in $relay_domains.\par
# \par
# Specify a list of hosts or domains, /file/name patterns or type:name\par
# lookup tables, separated by commas and/or whitespace.  Continue\par
# long lines by starting the next line with whitespace. A file name\par
# is replaced by its contents; a type:name table is matched when a\par
# (parent) domain appears as lookup key.\par
#\par
# NOTE: Postfix will not automatically forward mail for domains that\par
# list this system as their primary or backup MX host. See the\par
# permit_mx_backup restriction description in postconf(5).\par
#\par
#relay_domains = $mydestination\par
\par
# INTERNET OR INTRANET\par
\par
# The relayhost parameter specifies the default host to send mail to\par
# when no entry is matched in the optional transport(5) table. When\par
# no relayhost is given, mail is routed directly to the destination.\par
#\par
# On an intranet, specify the organizational domain name. If your\par
# internal DNS uses no MX records, specify the name of the intranet\par
# gateway host instead.\par
#\par
# In the case of SMTP, specify a domain, host, host:port, [host]:port,\par
# [address] or [address]:port; the form [host] turns off MX lookups.\par
#\par
# If you're connected via UUCP, see also the default_transport parameter.\par
#\par
relayhost = mail2.hassanabul.com\par
#relayhost = [gateway.my.domain]\par
#relayhost = [mailserver.isp.tld]\par
#relayhost = uucphost\par
#relayhost = [an.ip.add.ress]\par
\par
# REJECTING UNKNOWN RELAY USERS\par
#\par
# The relay_recipient_maps parameter specifies optional lookup tables\par
# with all addresses in the domains that match $relay_domains.\par
#\par
# If this parameter is defined, then the SMTP server will reject\par
# mail for unknown relay users. This feature is off by default.\par
#\par
# The right-hand side of the lookup tables is conveniently ignored.\par
# In the left-hand side, specify an @domain.tld wild-card, or specify\par
# a user@domain.tld address.\par
# \par
#relay_recipient_maps = hash:/etc/postfix/relay_recipients\par
\par
# INPUT RATE CONTROL\par
#\par
# The in_flow_delay configuration parameter implements mail input\par
# flow control. This feature is turned on by default, although it\par
# still needs further development (it's disabled on SCO UNIX due\par
# to an SCO bug).\par
# \par
# A Postfix process will pause for $in_flow_delay seconds before\par
# accepting a new message, when the message arrival rate exceeds the\par
# message delivery rate. With the default 100 SMTP server process\par
# limit, this limits the mail inflow to 100 messages a second more\par
# than the number of messages delivered per second.\par
# \par
# Specify 0 to disable the feature. Valid delays are 0..10.\par
# \par
#in_flow_delay = 1s\par
\par
# ADDRESS REWRITING\par
#\par
# The ADDRESS_REWRITING_README document gives information about\par
# address masquerading or other forms of address rewriting including\par
# username->Firstname.Lastname mapping.\par
\par
# ADDRESS REDIRECTION (VIRTUAL DOMAIN)\par
#\par
# The VIRTUAL_README document gives information about the many forms\par
# of domain hosting that Postfix supports.\par
\par
# "USER HAS MOVED" BOUNCE MESSAGES\par
#\par
# See the discussion in the ADDRESS_REWRITING_README document.\par
\par
# TRANSPORT MAP\par
#\par
# See the discussion in the ADDRESS_REWRITING_README document.\par
\par
# ALIAS DATABASE\par
#\par
# The alias_maps parameter specifies the list of alias databases used\par
# by the local delivery agent. The default list is system dependent.\par
#\par
# On systems with NIS, the default is to search the local alias\par
# database, then the NIS alias database. See aliases(5) for syntax\par
# details.\par
# \par
# If you change the alias database, run "postalias /etc/aliases" (or\par
# wherever your system stores the mail alias file), or simply run\par
# "newaliases" to build the necessary DBM or DB file.\par
#\par
# It will take a minute or so before changes become visible.  Use\par
# "postfix reload" to eliminate the delay.\par
#\par
#alias_maps = dbm:/etc/aliases\par
alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases\par
#alias_maps = hash:/etc/aliases, nis:mail.aliases\par
#alias_maps = netinfo:/aliases\par
\par
# The alias_database parameter specifies the alias database(s) that\par
# are built with "newaliases" or "sendmail -bi".  This is a separate\par
# configuration parameter, because alias_maps (see above) may specify\par
# tables that are not necessarily all under control by Postfix.\par
#\par
#alias_database = dbm:/etc/aliases\par
#alias_database = dbm:/etc/mail/aliases\par
alias_database = hash:/etc/aliases\par
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases\par
\par
# ADDRESS EXTENSIONS (e.g., user+foo)\par
#\par
# The recipient_delimiter parameter specifies the separator between\par
# user names and address extensions (user+foo). See canonical(5),\par
# local(8), relocated(5) and virtual(5) for the effects this has on\par
# aliases, canonical, virtual, relocated and .forward file lookups.\par
# Basically, the software tries user+foo and .forward+foo before\par
# trying user and .forward.\par
#\par
#recipient_delimiter = +\par
\par
# DELIVERY TO MAILBOX\par
#\par
# The home_mailbox parameter specifies the optional pathname of a\par
# mailbox file relative to a user's home directory. The default\par
# mailbox file is /var/spool/mail/user or /var/mail/user.  Specify\par
# "Maildir/" for qmail-style delivery (the / is required).\par
#\par
#home_mailbox = Mailbox\par
#home_mailbox = Maildir/\par
 \par
# The mail_spool_directory parameter specifies the directory where\par
# UNIX-style mailboxes are kept. The default setting depends on the\par
# system type.\par
#\par
#mail_spool_directory = /var/mail\par
#mail_spool_directory = /var/spool/mail\par
\par
# The mailbox_command parameter specifies the optional external\par
# command to use instead of mailbox delivery. The command is run as\par
# the recipient with proper HOME, SHELL and LOGNAME environment settings.\par
# Exception:  delivery for root is done as $default_user.\par
#\par
# Other environment variables of interest: USER (recipient username),\par
# EXTENSION (address extension), DOMAIN (domain part of address),\par
# and LOCAL (the address localpart).\par
#\par
# Unlike other Postfix configuration parameters, the mailbox_command\par
# parameter is not subjected to $parameter substitutions. This is to\par
# make it easier to specify shell syntax (see example below).\par
#\par
# Avoid shell meta characters because they will force Postfix to run\par
# an expensive shell process. Procmail alone is expensive enough.\par
#\par
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN\par
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.\par
#\par
#mailbox_command = /some/where/procmail\par
#mailbox_command = /some/where/procmail -a "$EXTENSION"\par
\par
# The mailbox_transport specifies the optional transport in master.cf\par
# to use after processing aliases and .forward files. This parameter\par
# has precedence over the mailbox_command, fallback_transport and\par
# luser_relay parameters.\par
#\par
# Specify a string of the form transport:nexthop, where transport is\par
# the name of a mail delivery transport defined in master.cf.  The\par
# :nexthop part is optional. For more details see the sample transport\par
# configuration file.\par
#\par
# NOTE: if you use this feature for accounts not in the UNIX password\par
# file, then you must update the "local_recipient_maps" setting in\par
# the main.cf file, otherwise the SMTP server will reject mail for    \par
# non-UNIX accounts with "User unknown in local recipient table".\par
#\par
#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp\par
\par
# If using the cyrus-imapd IMAP server deliver local mail to the IMAP\par
# server using LMTP (Local Mail Transport Protocol), this is prefered\par
# over the older cyrus deliver program by setting the\par
# mailbox_transport as below:\par
#\par
# mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp\par
#\par
# The efficiency of LMTP delivery for cyrus-imapd can be enhanced via\par
# these settings.\par
#\par
# local_destination_recipient_limit = 300\par
# local_destination_concurrency_limit = 5\par
#\par
# Of course you should adjust these settings as appropriate for the\par
# capacity of the hardware you are using. The recipient limit setting\par
# can be used to take advantage of the single instance message store\par
# capability of Cyrus. The concurrency limit can be used to control\par
# how many simultaneous LMTP sessions will be permitted to the Cyrus\par
# message store.\par
#\par
# To use the old cyrus deliver program you have to set:\par
#mailbox_transport = cyrus\par
\par
# The fallback_transport specifies the optional transport in master.cf\par
# to use for recipients that are not found in the UNIX passwd database.\par
# This parameter has precedence over the luser_relay parameter.\par
#\par
# Specify a string of the form transport:nexthop, where transport is\par
# the name of a mail delivery transport defined in master.cf.  The\par
# :nexthop part is optional. For more details see the sample transport\par
# configuration file.\par
#\par
# NOTE: if you use this feature for accounts not in the UNIX password\par
# file, then you must update the "local_recipient_maps" setting in\par
# the main.cf file, otherwise the SMTP server will reject mail for    \par
# non-UNIX accounts with "User unknown in local recipient table".\par
#\par
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp\par
#fallback_transport =\par
\par
# The luser_relay parameter specifies an optional destination address\par
# for unknown recipients.  By default, mail for unknown@$mydestination,\par
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned\par
# as undeliverable.\par
#\par
# The following expansions are done on luser_relay: $user (recipient\par
# username), $shell (recipient shell), $home (recipient home directory),\par
# $recipient (full recipient address), $extension (recipient address\par
# extension), $domain (recipient domain), $local (entire recipient\par
# localpart), $recipient_delimiter. Specify $\{name?value\} or\par
# $\{name:value\} to expand value only when $name does (does not) exist.\par
#\par
# luser_relay works only for the default Postfix local delivery agent.\par
#\par
# NOTE: if you use this feature for accounts not in the UNIX password\par
# file, then you must specify "local_recipient_maps =" (i.e. empty) in\par
# the main.cf file, otherwise the SMTP server will reject mail for    \par
# non-UNIX accounts with "User unknown in local recipient table".\par
#\par
#luser_relay = $user@other.host\par
#luser_relay = $local@other.host\par
#luser_relay = admin+$local\par
  \par
# JUNK MAIL CONTROLS\par
# \par
# The controls listed here are only a very small subset. The file\par
# SMTPD_ACCESS_README provides an overview.\par
\par
# The header_checks parameter specifies an optional table with patterns\par
# that each logical message header is matched against, including\par
# headers that span multiple physical lines.\par
#\par
# By default, these patterns also apply to MIME headers and to the\par
# headers of attached messages. With older Postfix versions, MIME and\par
# attached message headers were treated as body text.\par
#\par
# For details, see "man header_checks".\par
#\par
#header_checks = regexp:/etc/postfix/header_checks\par
\par
# FAST ETRN SERVICE\par
#\par
# Postfix maintains per-destination logfiles with information about\par
# deferred mail, so that mail can be flushed quickly with the SMTP\par
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".\par
# See the ETRN_README document for a detailed description.\par
# \par
# The fast_flush_domains parameter controls what destinations are\par
# eligible for this service. By default, they are all domains that\par
# this server is willing to relay mail to.\par
# \par
#fast_flush_domains = $relay_domains\par
\par
# SHOW SOFTWARE VERSION OR NOT\par
#\par
# The smtpd_banner parameter specifies the text that follows the 220\par
# code in the SMTP server's greeting banner. Some people like to see\par
# the mail version advertised. By default, Postfix shows no version.\par
#\par
# You MUST specify $myhostname at the start of the text. That is an\par
# RFC requirement. Postfix itself does not care.\par
#\par
#smtpd_banner = $myhostname ESMTP $mail_name\par
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)\par
\par
# PARALLEL DELIVERY TO THE SAME DESTINATION\par
#\par
# How many parallel deliveries to the same user or domain? With local\par
# delivery, it does not make sense to do massively parallel delivery\par
# to the same user, because mailbox updates must happen sequentially,\par
# and expensive pipelines in .forward files can cause disasters when\par
# too many are run at the same time. With SMTP deliveries, 10\par
# simultaneous connections to the same domain could be sufficient to\par
# raise eyebrows.\par
# \par
# Each message delivery transport has its XXX_destination_concurrency_limit\par
# parameter.  The default is $default_destination_concurrency_limit for\par
# most delivery transports. For the local delivery agent the default is 2.\par
\par
#local_destination_concurrency_limit = 2\par
#default_destination_concurrency_limit = 20\par
\par
# DEBUGGING CONTROL\par
#\par
# The debug_peer_level parameter specifies the increment in verbose\par
# logging level when an SMTP client or server host name or address\par
# matches a pattern in the debug_peer_list parameter.\par
#\par
debug_peer_level = 2\par
\par
# The debug_peer_list parameter specifies an optional list of domain\par
# or network patterns, /file/name patterns or type:name tables. When\par
# an SMTP client or server host name or address matches a pattern,\par
# increase the verbose logging level by the amount specified in the\par
# debug_peer_level parameter.\par
#\par
#debug_peer_list = 127.0.0.1\par
#debug_peer_list = some.domain\par
\par
# The debugger_command specifies the external command that is executed\par
# when a Postfix daemon program is run with the -D option.\par
#\par
# Use "command .. & sleep 5" so that the debugger can attach before\par
# the process marches on. If you use an X-based debugger, be sure to\par
# set up your XAUTHORITY environment variable before starting Postfix.\par
#\par
debugger_command =\par
\tab  PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin\par
\tab  ddd $daemon_directory/$process_name $process_id & sleep 5\par
\par
# If you can't use X, use this to capture the call stack when a\par
# daemon crashes. The result is in a file in the configuration\par
# directory, and is named after the process name and the process ID.\par
#\par
# debugger_command =\par
#\tab PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;\par
#\tab echo where) | gdb $daemon_directory/$process_name $process_id 2>&1\par
#\tab >$config_directory/$process_name.$process_id.log & sleep 5\par
#\par
# Another possibility is to run gdb under a detached screen session.\par
# To attach to the screen sesssion, su root and run "screen -r\par
# <id_string>" where <id_string> uniquely matches one of the detached\par
# sessions (from "screen -list").\par
#\par
# debugger_command =\par
#\tab PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen\par
#\tab -dmS $process_name gdb $daemon_directory/$process_name\par
#\tab $process_id & sleep 1\par
\par
# INSTALL-TIME CONFIGURATION INFORMATION\par
#\par
# The following parameters are used when installing a new Postfix version.\par
# \par
# sendmail_path: The full pathname of the Postfix sendmail command.\par
# This is the Sendmail-compatible mail posting interface.\par
# \par
sendmail_path = /usr/sbin/sendmail.postfix\par
\par
# newaliases_path: The full pathname of the Postfix newaliases command.\par
# This is the Sendmail-compatible command to build alias databases.\par
#\par
newaliases_path = /usr/bin/newaliases.postfix\par
\par
# mailq_path: The full pathname of the Postfix mailq command.  This\par
# is the Sendmail-compatible mail queue listing command.\par
# \par
mailq_path = /usr/bin/mailq.postfix\par
\par
# setgid_group: The group for mail submission and queue management\par
# commands.  This must be a group name with a numerical group ID that\par
# is not shared with other accounts, not even with the Postfix account.\par
#\par
setgid_group = postdrop\par
\par
# html_directory: The location of the Postfix HTML documentation.\par
#\par
html_directory = no\par
\par
# manpage_directory: The location of the Postfix on-line manual pages.\par
#\par
manpage_directory = /usr/share/man\par
\par
# sample_directory: The location of the Postfix sample configuration files.\par
# This parameter is obsolete as of Postfix 2.1.\par
#\par
sample_directory = /usr/share/doc/postfix-2.8.4/samples\par
\par
# readme_directory: The location of the Postfix README files.\par
#\par
readme_directory = /usr/share/doc/postfix-2.8.4/README_FILES\par
virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains\par
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual\par
virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox\par
transport_maps = hash:/var/spool/postfix/plesk/transport\par
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem\par
smtpd_tls_key_file = $smtpd_tls_cert_file\par
smtpd_tls_security_level = may\par
smtpd_use_tls = yes\par
smtp_tls_security_level = may\par
smtp_use_tls = no\par
smtpd_timeout = 3600s\par
smtpd_proxy_timeout = 3600s\par
disable_vrfy_command = yes\par
mynetworks = 127.0.0.0/8 [::1]/128 148.251.77.244/32 [2a01:4f8:202:42ef::2]/128\par
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re\par
smtpd_client_restrictions = permit_mynetworks\par
smtp_send_xforward_command = yes\par
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128\par
smtpd_sasl_auth_enable = yes\par
smtpd_recipient_restrictions = permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re, permit_sasl_authenticated, reject_unauth_destination\par
virtual_mailbox_base = /var/qmail/mailnames\par
virtual_uid_maps = static:110\par
virtual_gid_maps = static:31\par
smtpd_milters = inet:localhost:12768\par
non_smtpd_milters = inet:localhost:12768\par
sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps\par
virtual_transport = plesk_virtual\par
plesk_virtual_destination_recipient_limit = 1\par
mailman_destination_recipient_limit = 1\par
myhostname = Plesk.hassanabul.com\par
\par
}
0
 
ibu1System AdministratorAuthor Commented:
Gr8,
It worked exactly you mentioned. Thanking you will be very small word for your help.
Regards,
0
 
Zephyr ICTCloud ArchitectCommented:
No problem, glad it worked!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.