HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Postfix/courier/Centos 6 cant send email to external email servers (http://www.howtoforge.com/forums/showthread.php?t=54348)

maxtorzito 29th September 2011 21:50

Postfix/courier/Centos 6 cant send email to external email servers
 
Hi i use the tutorial: http://www.howtoforge.com/perfect-se...64-ispconfig-3 by FALKO.

My Server works perfect but only one thing i have problem.

When i send an email from external server like GMAIL i always recieve in my log file this:

Code:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
41F2213EE3 1097 Wed Sep 28 17:10:53 contacto@revistakapix.com
(connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out)
maxtorzito@gmail.com


localhost postfix/smtp[11865]: 41F2213EE3: to=, relay=none, delay=75748, delays=75642/0/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out)


As you can see i have a Connection timed out, i read in other post that i have to check if my ISP is not blocking the 25 port (is there a way i can know it or i have to ask to my ISP?).

If the port 25 is the problem how can i change it.

----> I have a STATIC IP

I read about using SASL/TLS but all the tutorials talks about Dovecot and the tutorial for Centos 6 (above) remove DEVOCOT and use courier.

And the Relay access denied show me when i try to use telnet
Code:

telnet revistakapix.com 25
Triyin 189.202.31.240...
Connected to revistakapix.com.
Escape character is ']'.
220 corporativo.preparatorianos.diablos ESMTP Postfix
ehlo revistakapix.com
250-corporaativo.preparatorianos.diablos
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DNS
mail from: contacto@revistakapix.com
250 2.1.0 Ok
rcpt to: maxtorzito@gmail.com
554 5.7.1 <maxtorzito@gmail.com>: Relay access denied

Here is my master.cf file:

Code:

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#              (yes)  (yes)  (yes)  (never) (100)
# ==========================================================================
smtp      inet  n      -      n      -      -      smtpd
#587        inet        n        -        n        -        -        smtpd
submission inet n      -      n      -      -      smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
smtps    inet  n      -      n      -      -      smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n      -      n      -      -      qmqpd
pickup    fifo  n      -      n      60      1      pickup
cleanup  unix  n      -      n      -      0      cleanup
qmgr      fifo  n      -      n      300    1      qmgr
#qmgr    fifo  n      -      n      300    1      oqmgr
tlsmgr    unix  -      -      n      1000?  1      tlsmgr
rewrite  unix  -      -      n      -      -      trivial-rewrite
bounce    unix  -      -      n      -      0      bounce
defer    unix  -      -      n      -      0      bounce
trace    unix  -      -      n      -      0      bounce
verify    unix  -      -      n      -      1      verify
flush    unix  n      -      n      1000?  0      flush
proxymap  unix  -      -      n      -      -      proxymap
proxywrite unix -      -      n      -      1      proxymap
smtp      unix  -      -      n      -      -      smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay    unix  -      -      n      -      -      smtp
        -o smtp_fallback_relay=
#      -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq    unix  n      -      n      -      -      showq
error    unix  -      -      n      -      -      error
retry    unix  -      -      n      -      -      error
discard  unix  -      -      n      -      -      discard
local    unix  -      n      n      -      -      local
virtual  unix  -      n      n      -      -      virtual
lmtp      unix  -      -      n      -      -      lmtp
anvil    unix  -      -      n      -      1      anvil
scache    unix  -      -      n      -      1      scache
#
# ====================================================================
# 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} ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# ====================================================================
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
#old-cyrus unix  -      n      n      -      -      pipe
#  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus    unix  -      n      n      -      -      pipe
#  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# 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/local/sbin/bsmtp -f $sender $nexthop $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}

amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet 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 receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1


Here is my main.cf file:

Code:

# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing.  When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# The data_directory parameter specifies the location of Postfix-writable
# data files (caches, random numbers). This directory must be owned
# by the mail_owner account (see below).
#
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes.  Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites.  If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.  By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = all

# Enable IPv4, and IPv6 if supported
inet_protocols = all

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain.  On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = corporativo.preparatorianos.diablos, localhost, localhost.localdomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#        mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
#  /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
#  For example, you define $mydestination domain recipients in   
#  the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
#  feature of the Postfix local delivery agent (see local(8)).
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix.  See the smtpd_recipient_restrictions parameter
# in postconf(5).
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network.  Instead, specify an explicit
# mynetworks list by hand, as described below.

# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what destinations this system will
# relay mail to.  See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
#  subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces or $proxy_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace.  Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
# relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible.  Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi".  This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(8), relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user.  Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
 
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception:  delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf.  The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for   
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

# If using the cyrus-imapd IMAP server deliver local mail to the IMAP
# server using LMTP (Local Mail Transport Protocol), this is prefered
# over the older cyrus deliver program by setting the
# mailbox_transport as below:
#
# mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#
# The efficiency of LMTP delivery for cyrus-imapd can be enhanced via
# these settings.
#
# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5
#
# Of course you should adjust these settings as appropriate for the
# capacity of the hardware you are using. The recipient limit setting
# can be used to take advantage of the single instance message store
# capability of Cyrus. The concurrency limit can be used to control
# how many simultaneous LMTP sessions will be permitted to the Cyrus
# message store.
#
# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus

# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf.  The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for   
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =

# The luser_relay parameter specifies an optional destination address
# for unknown recipients.  By default, mail for unknown@$mydestination,
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
# as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for   
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
 
# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.

# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see "man header_checks".
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
# See the ETRN_README document for a detailed description.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this service. By default, they are all domains that
# this server is willing to relay mail to.
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter.  The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2

# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
#        PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
#        echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
#        >$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# <id_string>" where <id_string> uniquely matches one of the detached
# sessions (from "screen -list").
#
# debugger_command =
#        PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
#        -dmS $process_name gdb $daemon_directory/$process_name
#        $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command.  This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands.  This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.6.6/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
myhostname = corporativo.preparatorianos.diablos
mynetworks = 127.0.0.0/8 [::1]/128
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
relayhost =
mailbox_size_limit = 0
message_size_limit = 0


Please i have this problem :( i try to fix it but i cant!!

falko 30th September 2011 11:11

Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx

maxtorzito 30th September 2011 15:14

Hi, my IP is: 189.202.31.240 (my ISP gave me the ip about 4 days ago), i checked for blacklisted and here is the report:


Code:

Checking 189.202.31.240 against 106 known blacklists...
Listed 1 times with 3 timeouts.
Blacklist        Status        Reason        TTL        ResponseTime
Spamhaus-ZEN        LISTED        Detail Return codes were: 127.0.0.11        900        359
AHBL        OK                        47
ANT        OK                        109
BACKSCATTERER        OK                        47
BARRACUDA        OK                        47
BURNT-TECH        OK                        16
CASA-CBL        OK                        187
CASA-CBL+        OK                        187
CASA-CDL        OK                        187
CBL        OK                        47
CYMRU-BOGONS        OK                        47
DAN-TOR        OK                        125
DAN-TOREXIT        OK                        125
DEADBEEF        OK                        109
DNSBLINFO        OK                        125
DRONE-BL        OK                        125
DUINV        OK                        156
DULRU        OK                        187
FABELSOURCES        OK                        156
GIRL        OK                        156
GRIP        OK                        156
HIL        OK                        156
HIL        OK                        156
HILLI        OK                        156
ICMFORBIDDEN        OK                        172
IMP-SPAM        OK                        156
IMP-WORM        OK                        156
INTERSIL        OK                        156
ivmSIP        OK                        156
ivmSIP/24        OK                        156
KEMPTBL        OK                        156
KUNDENSERVER        OK                        156
LASHBACK        OK                        156
LNSGBLOCK        OK                        156
LNSGBULK        OK                        156
LNSGDUL        OK                        156
LNSGMULTI        OK                        156
LNSGOR        OK                        156
LNSGSRC        OK                        156
MAILSPIKE-BL        OK                        203
MAILSPIKE-Z        OK                        203
MSRBL-Combined        OK                        406
MSRBL-Images        OK                        406
MSRBL-Phising        OK                        187
MSRBL-Spam        OK                        406
MSRBL-Viruses        OK                        187
NERD        OK                        187
NETHERRELAYS        OK                        187
NETHERUNSURE        OK                        187
NIXSPAM        OK                        187
NJABL        OK                        187
NJABLDUL        OK                        187
NJABLFORMMAIL        OK                        187
NJABLMULTI        OK                        187
NJABLPROXIES        OK                        187
NJABLSOURCES        OK                        187
NLKUNBLACKLIST        OK                        187
NLKUNWHITELIST        OK                        203
NOFALSEPOSITIVE        OK                        203
NOMOREFUNN        OK                        218
ORID        OK                        296
ORVEDB        OK                        203
OSPAM        OK                        203
PDL        OK                        203
PSBL        OK                        203
RANGERSBL        OK                        218
RATS-Dyna        OK                        218
RATS-NoPtr        OK                        218
RATS-Spam        OK                        218
RBL-JP        OK                        218
REDHAWK        OK                        218
RRBL        OK                        218
RSBL        OK                        265
SCHULTE        OK                        390
SDERB        OK                        265
SENDERBASE        OK                        265
SERVICESNET        OK                        265
SOLID        OK                        265
SORBS-BLOCK        OK                        265
SORBS-DUHL        OK                        265
SORBS-HTTP        OK                        265
SORBS-MISC        OK                        265
SORBS-SMTP        OK                        265
SORBS-SOCKS        OK                        265
SORBS-SPAM        OK                        265
SORBS-WEB        OK                        265
SORBS-ZOMBIE        OK                        265
SPAMCANNIBAL        OK                        265
SPAMCOP        OK                        265
SPAMSOURCES        OK                        296
SPEWS1        OK                        296
SPEWS2        OK                        296
SWINOG        OK                        296
TECHNOVISION        OK                        296
Tiopan        OK                        296
TRIUMF        OK                        296
UCEPROTECTL1        OK                        296
UCEPROTECTL2        OK                        296
UCEPROTECTL3        OK                        296
VIRBL        OK                        296
WPBL        OK                        296
WSFF        OK                        296
ZONEEDIT        OK                        296
CYBERLOGIC        TIMEOUT        ERROR, Reponse code=2                0
EMAILBASURA        TIMEOUT                        0
SPAMRBL        TIMEOUT                        0
reverse lookup        smtp diag        port scan        blacklist


How can i listed in 1 server if my IP is new? this is the problem? can i fix it?

maxtorzito 30th September 2011 16:26

Hi falko i remove my IP from the only blacklist where it was, now here is my report:



Code:

Checking 189.202.31.240 against 106 known blacklists...
Listed 0 times with 5 timeouts.
Blacklist        Status        Reason        TTL        ResponseTime
AHBL        OK                        47
ANT        OK                        125
BACKSCATTERER        OK                        62
BARRACUDA        OK                        47
BURNT-TECH        OK                        16
CASA-CBL        OK                        62
CASA-CBL+        OK                        62
CASA-CDL        OK                        62
CBL        OK                        16
CYMRU-BOGONS        OK                        47
DAN-TOR        OK                        125
DAN-TOREXIT        OK                        125
DEADBEEF        OK                        78
DNSBLINFO        OK                        78
DRONE-BL        OK                        47
DUINV        OK                        156
DULRU        OK                        187
FABELSOURCES        OK                        62
GIRL        OK                        78
GRIP        OK                        78
HIL        OK                        62
HIL        OK                        62
HILLI        OK                        156
ICMFORBIDDEN        OK                        172
IMP-SPAM        OK                        140
IMP-WORM        OK                        156
INTERSIL        OK                        78
ivmSIP        OK                        78
ivmSIP/24        OK                        78
KEMPTBL        OK                        78
KUNDENSERVER        OK                        140
LASHBACK        OK                        125
LNSGBLOCK        OK                        125
LNSGBULK        OK                        125
LNSGDUL        OK                        125
LNSGMULTI        OK                        125
LNSGOR        OK                        125
LNSGSRC        OK                        125
MAILSPIKE-BL        OK                        172
MAILSPIKE-Z        OK                        172
MSRBL-Combined        OK                        686
MSRBL-Images        OK                        686
MSRBL-Phising        OK                        156
MSRBL-Spam        OK                        718
MSRBL-Viruses        OK                        733
NERD        OK                        156
NETHERRELAYS        OK                        156
NETHERUNSURE        OK                        156
NIXSPAM        OK                        156
NJABL        OK                        156
NJABLDUL        OK                        156
NJABLFORMMAIL        OK                        156
NJABLMULTI        OK                        156
NJABLPROXIES        OK                        156
NJABLSOURCES        OK                        156
NLKUNBLACKLIST        OK                        156
NLKUNWHITELIST        OK                        156
NOFALSEPOSITIVE        OK                        156
NOMOREFUNN        OK                        156
ORVEDB        OK                        156
OSPAM        OK                        156
PDL        OK                        156
PSBL        OK                        156
RANGERSBL        OK                        172
RATS-Dyna        OK                        172
RATS-NoPtr        OK                        172
RATS-Spam        OK                        172
RBL-JP        OK                        172
RRBL        OK                        172
RSBL        OK                        172
SCHULTE        OK                        172
SDERB        OK                        172
SENDERBASE        OK                        172
SERVICESNET        OK                        172
SOLID        OK                        172
SORBS-BLOCK        OK                        172
SORBS-DUHL        OK                        172
SORBS-HTTP        OK                        172
SORBS-MISC        OK                        172
SORBS-SMTP        OK                        172
SORBS-SOCKS        OK                        172
SORBS-SPAM        OK                        172
SORBS-WEB        OK                        172
SORBS-ZOMBIE        OK                        172
SPAMCANNIBAL        OK                        172
SPAMCOP        OK                        172
Spamhaus-ZEN        OK                        172
SPAMSOURCES        OK                        172
SPEWS1        OK                        172
SPEWS2        OK                        172
SWINOG        OK                        187
TECHNOVISION        OK                        203
Tiopan        OK                        172
TRIUMF        OK                        172
UCEPROTECTL1        OK                        172
UCEPROTECTL2        OK                        172
UCEPROTECTL3        OK                        172
VIRBL        OK                        187
WPBL        OK                        187
WSFF        OK                        187
ZONEEDIT        OK                        187
CYBERLOGIC        TIMEOUT        ERROR, Reponse code=2                0
EMAILBASURA        TIMEOUT                        0
ORID        TIMEOUT                        0
REDHAWK        TIMEOUT        ERROR, Reponse code=2                0
SPAMRBL        TIMEOUT                        0
reverse lookup        smtp diag        port scan        blacklist

Reported by mxtoolbox.com on Friday, September 30, 2011 at 9:21:31 AM (GMT-5)  (History)


But the problem still:

Code:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
40F6F138AF 1120 Fri Sep 30 10:51:39 contacto@revistakapix.com
(connect to alt4.gmail-smtp-in.l.google.com[74.125.79.27]:25: Connection timed out)
maxtorzito@gmail.com

netstat -nlp

Code:

netstat -nlp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address              Foreign Address            State      PID/Program name 
tcp        0      0 127.0.0.1:10024            0.0.0.0:*                  LISTEN      -                 
tcp        0      0 127.0.0.1:10025            0.0.0.0:*                  LISTEN      -                 
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                  LISTEN      -                 
tcp        0      0 0.0.0.0:587                0.0.0.0:*                  LISTEN      -                 
tcp        0      0 127.0.0.1:3310              0.0.0.0:*                  LISTEN      -                 
tcp        0      0 0.0.0.0:111                0.0.0.0:*                  LISTEN      -                 
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                  LISTEN      -                 
tcp        0      0 192.168.0.100:53            0.0.0.0:*                  LISTEN      -                 
tcp        0      0 127.0.0.1:53                0.0.0.0:*                  LISTEN      -                 
tcp        0      0 127.0.0.1:631              0.0.0.0:*                  LISTEN      -                 
tcp        0      0 0.0.0.0:39127              0.0.0.0:*                  LISTEN      -                 
tcp        0      0 127.0.0.1:953              0.0.0.0:*                  LISTEN      -                 
tcp        0      0 :::993                      :::*                        LISTEN      -                 
tcp        0      0 :::995                      :::*                        LISTEN      -                 
tcp        0      0 :::8009                    :::*                        LISTEN      -                 
tcp        0      0 :::5900                    :::*                        LISTEN      3459/vino-server   
tcp        0      0 :::8686                    :::*                        LISTEN      -                 
tcp        0      0 :::110                      :::*                        LISTEN      -                 
tcp        0      0 :::143                      :::*                        LISTEN      -                 
tcp        0      0 :::111                      :::*                        LISTEN      -                 
tcp        0      0 :::8080                    :::*                        LISTEN      -                 
tcp        0      0 :::80                      :::*                        LISTEN      -                 
tcp        0      0 :::4848                    :::*                        LISTEN      -                  iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination       
fail2ban-SSH  tcp  --  anywhere            anywhere            tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination       

Chain fail2ban-SSH (1 references)
target    prot opt source              destination       
RETURN    all  --  anywhere            anywhere   
tcp        0      0 :::8081                    :::*                        LISTEN      -                 
tcp        0      0 :::8082                    :::*                        LISTEN      -                 
tcp        0      0 :::3700                    :::*                        LISTEN      -                 
tcp        0      0 :::8181                    :::*                        LISTEN      -                 
tcp        0      0 :::21                      :::*                        LISTEN      -                 
tcp        0      0 :::53                      :::*                        LISTEN      -                 
tcp        0      0 ::1:631                    :::*                        LISTEN      -                 
tcp        0      0 ::1:953                    :::*                        LISTEN      -                 
tcp        0      0 :::443                      :::*                        LISTEN      -                 
tcp        0      0 :::7676                    :::*                        LISTEN      -                 
tcp        0      0 :::49372                    :::*                        LISTEN      -                 
udp        0      0 192.168.0.100:53            0.0.0.0:*                              -                 
udp        0      0 127.0.0.1:53                0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:68                  0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:42188              0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:52180              0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:854                0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:608                0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:5353                0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:111                0.0.0.0:*                              -                 
udp        0      0 0.0.0.0:631                0.0.0.0:*                              -                 
udp        0      0 :::53                      :::*                                    -                 
udp        0      0 :::55097                    :::*                                    -                 
udp        0      0 :::854                      :::*                                    -                 
udp        0      0 :::111                      :::*                                    -                 
Active UNIX domain sockets (only servers)
Proto RefCnt Flags      Type      State        I-Node PID/Program name    Path
unix  2      [ ACC ]    STREAM    LISTENING    14491  3375/dbus-daemon    @/tmp/dbus-uRr4Yh8DYQ
unix  2      [ ACC ]    STREAM    LISTENING    10907  -                  /var/run/acpid.socket
unix  2      [ ACC ]    STREAM    LISTENING    12568  -                  @/tmp/fam-root-
unix  2      [ ACC ]    STREAM    LISTENING    36899  -                  private/lmtp
unix  2      [ ACC ]    STREAM    LISTENING    10134  -                  /var/run/dbus/system_bus_socket
unix  2      [ ACC ]    STREAM    LISTENING    29623  -                  @/tmp/fam-vmail-
unix  2      [ ACC ]    STREAM    LISTENING    12553  -                  /var/run/fail2ban/fail2ban.sock
unix  2      [ ACC ]    STREAM    LISTENING    36879  -                  private/error
unix  2      [ ACC ]    STREAM    LISTENING    36867  -                  private/smtp
unix  2      [ ACC ]    STREAM    LISTENING    36883  -                  private/retry
unix  2      [ ACC ]    STREAM    LISTENING    36887  -                  private/discard
unix  2      [ ACC ]    STREAM    LISTENING    36891  -                  private/local
unix  2      [ ACC ]    STREAM    LISTENING    11592  -                  /var/run/clamav/clamd.sock
unix  2      [ ACC ]    STREAM    LISTENING    7004  -                  @/com/ubuntu/upstart
unix  2      [ ACC ]    STREAM    LISTENING    11754  -                  /var/spool/amavisd/amavisd.sock
unix  2      [ ACC ]    STREAM    LISTENING    14908  3356/gnome-keyring- /tmp/keyring-5TqhY3/socket.ssh
unix  2      [ ACC ]    STREAM    LISTENING    14910  3356/gnome-keyring- /tmp/keyring-5TqhY3/socket.pkcs11
unix  2      [ ACC ]    STREAM    LISTENING    14245  3356/gnome-keyring- /tmp/keyring-5TqhY3/socket
unix  2      [ ACC ]    STREAM    LISTENING    36903  -                  private/anvil
unix  2      [ ACC ]    STREAM    LISTENING    36911  -                  private/maildrop
unix  2      [ ACC ]    STREAM    LISTENING    14927  3407/gnome-settings /tmp/orbit-diablos/linc-d4f-0-5e3535bcb4526
unix  2      [ ACC ]    STREAM    LISTENING    36907  -                  private/scache
unix  2      [ ACC ]    STREAM    LISTENING    13331  -                  @/tmp/gdm-session-biEtjOyX
unix  2      [ ACC ]    STREAM    LISTENING    18101  3630/gnome-terminal /tmp/orbit-diablos/linc-e2e-0-7fc6afa47205f
unix  2      [ ACC ]    STREAM    LISTENING    15129  3421/metacity      /tmp/orbit-diablos/linc-d5d-0-5f380312ceca0
unix  2      [ ACC ]    STREAM    LISTENING    15192  3430/gnome-panel    /tmp/orbit-diablos/linc-d66-0-460491ef16764
unix  2      [ ACC ]    STREAM    LISTENING    13080  -                  @/tmp/.X11-unix/X0
unix  2      [ ACC ]    STREAM    LISTENING    15267  3434/gconf-helper  /tmp/orbit-diablos/linc-d6a-0-3748a0659a0f
unix  2      [ ACC ]    STREAM    LISTENING    15341  3437/bonobo-activat /tmp/orbit-diablos/linc-d6d-0-42c9a9497d5c8
unix  2      [ ACC ]    STREAM    LISTENING    15426  3444/wnck-applet    /tmp/orbit-diablos/linc-d74-0-7ef9338292c48
unix  2      [ ACC ]    STREAM    LISTENING    15518  3445/trashapplet    /tmp/orbit-diablos/linc-d75-0-198b74a7beda6
unix  2      [ ACC ]    STREAM    LISTENING    16170  3467/bluetooth-appl /tmp/orbit-diablos/linc-d8b-0-69cbcaf45ccfb
unix  2      [ ACC ]    STREAM    LISTENING    16188  3469/gpk-update-ico /tmp/orbit-diablos/linc-d8d-0-54067fee670de
unix  2      [ ACC ]    STREAM    LISTENING    16214  3465/nm-applet      /tmp/orbit-diablos/linc-d89-0-2b54830d7e34d
unix  2      [ ACC ]    STREAM    LISTENING    16226  3485/gnome-screensa /tmp/orbit-diablos/linc-d8e-0-3e84df737ef4b
unix  2      [ ACC ]    STREAM    LISTENING    16278  3466/gnome-power-ma /tmp/orbit-diablos/linc-d8a-0-7efb0b99e041a
unix  2      [ ACC ]    STREAM    LISTENING    36824  -                  public/cleanup
unix  2      [ ACC ]    STREAM    LISTENING    8975  -                  /var/run/rpcbind.sock
unix  2      [ ACC ]    STREAM    LISTENING    16293  3459/vino-server    /tmp/orbit-diablos/linc-d83-0-350cac07e1bea
unix  2      [ ACC ]    STREAM    LISTENING    15211  3426/pulseaudio    /home/diablos/.pulse/1c13bf3383432c145507febf0000000f-runtime/native
unix  2      [ ACC ]    STREAM    LISTENING    13185  -                  @/tmp/gdm-greeter-sVfpwkEC
unix  2      [ ACC ]    STREAM    LISTENING    11720  -                  /var/lib/mysql/mysql.sock
unix  2      [ ACC ]    STREAM    LISTENING    36831  -                  private/tlsmgr
unix  2      [ ACC ]    STREAM    LISTENING    36835  -                  private/rewrite
unix  2      [ ACC ]    STREAM    LISTENING    10844  -                  /var/run/cups/cups.sock
unix  2      [ ACC ]    STREAM    LISTENING    16382  3435/nautilus      /tmp/orbit-diablos/linc-d6b-0-4616c29b128d6
unix  2      [ ACC ]    STREAM    LISTENING    16630  3501/gdm-user-switc /tmp/orbit-diablos/linc-dad-0-1aaf96bc11a0
unix  2      [ ACC ]    STREAM    LISTENING    36915  -                  private/amavis
unix  2      [ ACC ]    STREAM    LISTENING    16650  3504/notification-a /tmp/orbit-diablos/linc-db0-0-62ed6e15c8180
unix  2      [ ACC ]    STREAM    LISTENING    16703  3502/clock-applet  /tmp/orbit-diablos/linc-dae-0-4bb4706fcb1f0
unix  2      [ ACC ]    STREAM    LISTENING    17530  3541/chrome        /tmp/.com.google.Chrome.0BJYsc/SingletonSocket
unix  2      [ ACC ]    STREAM    LISTENING    17539  3541/chrome        /tmp/orbit-diablos/linc-dd5-0-39593d9e55ca8
unix  2      [ ACC ]    STREAM    LISTENING    36839  -                  private/bounce
unix  2      [ ACC ]    STREAM    LISTENING    10283  -                  /var/run/avahi-daemon/socket
unix  2      [ ACC ]    STREAM    LISTENING    36843  -                  private/defer
unix  2      [ ACC ]    STREAM    LISTENING    14565  3401/gconfd-2      /tmp/orbit-diablos/linc-d49-0-5b83094f4919b
unix  2      [ ACC ]    STREAM    LISTENING    14811  3365/gnome-session  /tmp/orbit-diablos/linc-d25-0-5925fdfc4f148
unix  2      [ ACC ]    STREAM    LISTENING    9132  -                  /var/spool/authdaemon/socket.tmp
unix  2      [ ACC ]    STREAM    LISTENING    15208  3426/pulseaudio    /tmp/.esd-500/socket
unix  2      [ ACC ]    STREAM    LISTENING    36895  -                  private/virtual
unix  2      [ ACC ]    STREAM    LISTENING    36847  -                  private/trace
unix  2      [ ACC ]    STREAM    LISTENING    36851  -                  private/verify
unix  2      [ ACC ]    STREAM    LISTENING    14904  3356/gnome-keyring- /tmp/orbit-diablos/linc-d1c-0-49767b7eb2aca
unix  2      [ ACC ]    STREAM    LISTENING    13081  -                  /tmp/.X11-unix/X0
unix  2      [ ACC ]    STREAM    LISTENING    14543  3365/gnome-session  /tmp/.ICE-unix/3365
unix  2      [ ACC ]    STREAM    LISTENING    36855  -                  public/flush
unix  2      [ ACC ]    STREAM    LISTENING    10936  -                  @/var/run/hald/dbus-2V6iMIyPTb
unix  2      [ ACC ]    STREAM    LISTENING    36859  -                  private/proxymap
unix  2      [ ACC ]    STREAM    LISTENING    36863  -                  private/proxywrite
unix  2      [ ACC ]    STREAM    LISTENING    36871  -                  private/relay
unix  2      [ ACC ]    STREAM    LISTENING    36875  -                  public/showq
unix  2      [ ACC ]    STREAM    LISTENING    10941  -                  @/var/run/hald/dbus-vF7us0ihSW
unix  2      [ ACC ]    STREAM    LISTENING    14542  3365/gnome-session  @/tmp/.ICE-unix/3365

I have disable SELinux, i have disable the centos firewall i have activate the ISPConfig firewall with this ports:

TCP: 20,21,25,53,80,110,143,443,3306,8080,8081,10000,48 48,34890,587
UDP: 53,3306,587


my iptables:

Code:

iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination       
fail2ban-SSH  tcp  --  anywhere            anywhere            tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination       

Chain fail2ban-SSH (1 references)
target    prot opt source              destination       
RETURN    all  --  anywhere            anywhere


Please i need help

falko 1st October 2011 09:34

Any errors in your mail log?

Are you sure you have a static IP? If it's dynamic, it's most likely blacklisted by all big email providers.

Do you have this problem with Gmail only, or with other email providers as well?

Also, please ask your ISP if they block port 25.

maxtorzito 1st October 2011 17:11

Quote:

Originally Posted by falko (Post 264623)
Any errors in your mail log?

Are you sure you have a static IP? If it's dynamic, it's most likely blacklisted by all big email providers.

Do you have this problem with Gmail only, or with other email providers as well?

Also, please ask your ISP if they block port 25.

Any errors in your mail log?

Code:

Oct 1 09:43:43 corporativo amavis[2961]: Local-out proto code loaded
Oct 1 09:43:43 corporativo amavis[2961]: OS_Fingerprint code NOT loaded
Oct 1 09:43:43 corporativo amavis[2961]: ANTI-VIRUS code loaded
Oct 1 09:43:43 corporativo amavis[2961]: ANTI-SPAM code loaded
Oct 1 09:43:43 corporativo amavis[2961]: ANTI-SPAM-EXT code NOT loaded
Oct 1 09:43:43 corporativo amavis[2961]: ANTI-SPAM-C code NOT loaded
Oct 1 09:43:43 corporativo amavis[2961]: ANTI-SPAM-SA code loaded
Oct 1 09:43:43 corporativo amavis[2961]: Unpackers code loaded
Oct 1 09:43:43 corporativo amavis[2961]: DKIM code NOT loaded
Oct 1 09:43:43 corporativo amavis[2961]: Tools code NOT loaded
Oct 1 09:43:43 corporativo amavis[2961]: Found $file at /usr/bin/file
Oct 1 09:43:43 corporativo amavis[2961]: Found $altermime at /usr/bin/altermime
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .mail
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .asc
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .uue
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .hqx
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .ync
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .F at /usr/bin/unfreeze
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .Z at /usr/bin/gzip -d
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .gz at /usr/bin/gzip -d
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .bz2 at /usr/bin/bzip2 -d
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .lzo at /usr/bin/lzop -d
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .rpm at /usr/bin/rpm2cpio
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .cpio at /usr/bin/pax
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .tar at /usr/bin/pax
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .deb at /usr/bin/ar
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .zip
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .7z at /usr/bin/7za
Oct 1 09:43:43 corporativo amavis[2961]: No decoder for .rar tried: rar, unrar
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .arj at /usr/bin/arj
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .arc at /usr/bin/nomarch
Oct 1 09:43:43 corporativo amavis[2961]: No decoder for .zoo tried: zoo, unzoo
Oct 1 09:43:43 corporativo amavis[2961]: No decoder for .lha tried: lha
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .cab at /usr/bin/cabextract
Oct 1 09:43:43 corporativo amavis[2961]: No decoder for .tnef tried: tnef
Oct 1 09:43:43 corporativo amavis[2961]: Internal decoder for .tnef
Oct 1 09:43:43 corporativo amavis[2961]: Found decoder for .exe at /usr/bin/arj
Oct 1 09:43:43 corporativo amavis[2961]: Using primary internal av scanner code for ClamAV-clamd
Oct 1 09:43:43 corporativo amavis[2961]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Oct 1 09:43:43 corporativo amavis[2961]: Creating db in /var/spool/amavisd/db/; BerkeleyDB 0.43, libdb 4.7
Oct 1 09:43:44 corporativo postfix/postfix-script[3067]: starting the Postfix mail system
Oct 1 09:43:44 corporativo postfix/master[3068]: daemon started -- version 2.6.6, configuration /etc/postfix
Oct 1 09:43:44 corporativo postfix/qmgr[3077]: 2B20E2A7F: from=, size=433, nrcpt=1 (queue active)
Oct 1 09:43:44 corporativo postfix/qmgr[3077]: E6C3014121: from=, size=1107, nrcpt=1 (queue active)
Oct 1 09:43:45 corporativo postfix/pickup[3076]: 0C37C13F2B: uid=0 from=
Oct 1 09:43:45 corporativo postfix/cleanup[3180]: 0C37C13F2B: message-id=<20111001144345.0C37C13F2B@corporativo.preparatorianos.diablos>
Oct 1 09:43:45 corporativo postfix/qmgr[3077]: 0C37C13F2B: from=, size=448, nrcpt=1 (queue active)
Oct 1 09:43:46 corporativo amavis[2961]: DKIM signature verification disabled, corresponding features not available. If not intentional, consider enabling it by setting: $enable_dkim_verification to 1, or explicitly disable it by setting it to 0 to quench down this warning.
Oct 1 09:43:47 corporativo amavis[3305]: (03305-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: 2, retrying (2)
Oct 1 09:43:47 corporativo amavis[3306]: (03306-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: 2, retrying (2)
Oct 1 09:43:53 corporativo amavis[3305]: (03305-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/spool/amavisd/clamd.sock (Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No existe el fichero o el directorio) at (eval 90) line 373.\n
Oct 1 09:43:53 corporativo amavis[3305]: (03305-01) (!!)WARN: all primary virus scanners failed, considering backups
Oct 1 09:43:53 corporativo amavis[3306]: (03306-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/spool/amavisd/clamd.sock (Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: No existe el fichero o el directorio) at (eval 90) line 373.\n
Oct 1 09:43:53 corporativo amavis[3306]: (03306-01) (!!)WARN: all primary virus scanners failed, considering backups
Oct 1 09:43:57 corporativo postfix/smtpd[3440]: connect from unknown[127.0.0.1]
Oct 1 09:43:57 corporativo postfix/smtpd[3440]: CEF6F13F32: client=unknown[127.0.0.1]
Oct 1 09:43:57 corporativo postfix/cleanup[3180]: CEF6F13F32: message-id=<20111001144345.0C37C13F2B@corporativo.preparatorianos.diablos>
Oct 1 09:43:58 corporativo postfix/qmgr[3077]: CEF6F13F32: from=, size=1003, nrcpt=1 (queue active)
Oct 1 09:43:58 corporativo amavis[3306]: (03306-01) Passed CLEAN, -> , Message-ID: <20111001144345.0C37C13F2B@corporativo.preparatorianos.diablos>, mail_id: reuR+VFR1Dx8, Hits: 0.01, size: 446, queued_as: CEF6F13F32, 11623 ms
Oct 1 09:43:58 corporativo postfix/smtp[3196]: 0C37C13F2B: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=13, delays=0.12/0/1.3/12, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03306-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CEF6F13F32)
Oct 1 09:43:58 corporativo postfix/qmgr[3077]: 0C37C13F2B: removed
Oct 1 09:43:58 corporativo postfix/local[3461]: CEF6F13F32: to=, relay=local, delay=0.49, delays=0.22/0.14/0/0.13, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 1 09:43:58 corporativo postfix/qmgr[3077]: CEF6F13F32: removed
Oct 1 09:44:02 corporativo postfix/smtpd[3558]: connect from unknown[127.0.0.1]
Oct 1 09:44:02 corporativo postfix/smtpd[3558]: B5F2013F32: client=unknown[127.0.0.1]
Oct 1 09:44:02 corporativo postfix/cleanup[3180]: B5F2013F32: message-id=<20111001144234.2B20E2A7F@corporativo.preparatorianos.diablos>
Oct 1 09:44:02 corporativo postfix/qmgr[3077]: B5F2013F32: from=, size=988, nrcpt=1 (queue active)
Oct 1 09:44:02 corporativo amavis[3305]: (03305-01) Passed CLEAN, -> , Message-ID: <20111001144234.2B20E2A7F@corporativo.preparatorianos.diablos>, mail_id: noPcY7PqmOng, Hits: 0.01, size: 431, queued_as: B5F2013F32, 16378 ms
Oct 1 09:44:02 corporativo postfix/smtp[3078]: 2B20E2A7F: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=89, delays=70/0.39/2/16, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03305-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as B5F2013F32)
Oct 1 09:44:02 corporativo postfix/qmgr[3077]: 2B20E2A7F: removed
Oct 1 09:44:02 corporativo postfix/local[3461]: B5F2013F32: to=, relay=local, delay=0.12, delays=0.08/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 1 09:44:02 corporativo postfix/qmgr[3077]: B5F2013F32: removed
Oct 1 09:44:05 corporativo postfix/smtp[3086]: connect to gmail-smtp-in.l.google.com[74.125.157.27]:25: Connection timed out
Oct 1 09:44:26 corporativo postfix/smtp[3086]: connect to alt1.gmail-smtp-in.l.google.com[74.125.113.26]:25: Connection timed out
Oct 1 09:44:47 corporativo postfix/smtp[3086]: connect to alt2.gmail-smtp-in.l.google.com[209.85.143.27]:25: Connection timed out
Oct 1 09:45:01 corporativo pop3d: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:45:01 corporativo pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Oct 1 09:45:01 corporativo imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:45:01 corporativo imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Oct 1 09:45:01 corporativo postfix/smtpd[3896]: connect from localhost.localdomain[127.0.0.1]
Oct 1 09:45:01 corporativo postfix/smtpd[3896]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Oct 1 09:45:01 corporativo postfix/smtpd[3896]: disconnect from localhost.localdomain[127.0.0.1]
Oct 1 09:45:08 corporativo postfix/smtp[3086]: connect to alt3.gmail-smtp-in.l.google.com[209.85.229.27]:25: Connection timed out
Oct 1 09:45:29 corporativo postfix/smtp[3086]: connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out
Oct 1 09:45:29 corporativo postfix/smtp[3086]: E6C3014121: to=, relay=none, delay=618, delays=512/0.31/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out)
Oct 1 09:48:58 corporativo postfix/smtpd[3440]: timeout after END-OF-MESSAGE from unknown[127.0.0.1]
Oct 1 09:48:58 corporativo postfix/smtpd[3440]: disconnect from unknown[127.0.0.1]
Oct 1 09:49:02 corporativo postfix/smtpd[3558]: timeout after END-OF-MESSAGE from unknown[127.0.0.1]
Oct 1 09:49:02 corporativo postfix/smtpd[3558]: disconnect from unknown[127.0.0.1]
Oct 1 09:50:01 corporativo pop3d: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:50:01 corporativo pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Oct 1 09:50:01 corporativo imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:50:01 corporativo imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Oct 1 09:50:01 corporativo postfix/smtpd[4178]: connect from localhost.localdomain[127.0.0.1]
Oct 1 09:50:01 corporativo postfix/smtpd[4178]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Oct 1 09:50:01 corporativo postfix/smtpd[4178]: disconnect from localhost.localdomain[127.0.0.1]
Oct 1 09:55:02 corporativo imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:55:02 corporativo imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Oct 1 09:55:02 corporativo pop3d: Connection, ip=[::ffff:127.0.0.1]
Oct 1 09:55:02 corporativo pop3d: Disconnected, ip=[::ffff:127.0.0.1]

Are you sure you have a static IP? If it's dynamic, it's most likely blacklisted by all big email providers.
- Yes i have, i pay monthly for my STATIC IP to my ISP, when i enter this page: http://whatismyipaddress.com/ip/189.202.31.240 says STATIC IP

Do you have this problem with Gmail only, or with other email providers as well?
- I have problem with gmail, hotmail, yahoo mail and so on..

Also, please ask your ISP if they block port 25.
- I called my ISP 2 days ago and they told me they have open ports from 21 to 80

I still triying but i cant fix it, thank you very much for your help, i hope you can help me, I can make a donation for your help!! Thanks!

falko 2nd October 2011 09:51

Quote:

Oct 1 09:43:47 corporativo amavis[3305]: (03305-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: 2, retrying (2)
Oct 1 09:43:47 corporativo amavis[3306]: (03306-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/spool/amavisd/clamd.sock: 2, retrying (2)
First, try to restart clamd and then check your mail log if the above messages go away.

If not, please post the output of
Code:

ls -la /var/spool/amavisd/
If you can solve this problem, but still can't send, please check if your reverse record is ok. Also, please create an SPF record for your domain.

maxtorzito 4th October 2011 21:47

:(
 
2 Attachment(s)
Quote:

Originally Posted by falko (Post 264655)
First, try to restart clamd and then check your mail log if the above messages go away.

If not, please post the output of
Code:

ls -la /var/spool/amavisd/
If you can solve this problem, but still can't send, please check if your reverse record is ok. Also, please create an SPF record for your domain.

There isnt more errors of "clamd" now.

But i still having problems for sending mail :(

I attach 2 imgs for my dns zones, i create the TXT dns but i dont know if its ok, also i have disabled the PTR because i dont know if its ok too.

I appreciate your help

Mail Queue
Code:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
EBCEF220C2 1172 Tue Oct 4 14:27:46 contacto@skulbits.com
(connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out)
maxtorzito@gmail.com
-- 1 Kbytes in 1 Request.

MAIL LOG
Code:

Oct 4 14:25:01 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:25:01 localhost imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Oct 4 14:25:01 localhost pop3d: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:25:01 localhost pop3d: Disconnected, ip=[::ffff:127.0.0.1]
Oct 4 14:25:01 localhost postfix/smtpd[2497]: connect from localhost.localdomain[127.0.0.1]
Oct 4 14:25:01 localhost postfix/smtpd[2497]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Oct 4 14:25:01 localhost postfix/smtpd[2497]: disconnect from localhost.localdomain[127.0.0.1]
Oct 4 14:25:10 localhost postfix/postsuper[2527]: Deleted: 3 messages
Oct 4 14:27:40 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:27:40 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], port=[44493], protocol=IMAP
Oct 4 14:27:40 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=30, sent=238, time=0
Oct 4 14:27:40 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:27:40 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], port=[44497], protocol=IMAP
Oct 4 14:27:40 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=485, sent=1654, time=0
Oct 4 14:27:40 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:27:40 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], port=[44498], protocol=IMAP
Oct 4 14:27:40 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], headers=1461, body=0, rcvd=296, sent=3767, time=0
Oct 4 14:27:45 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:27:45 localhost postfix/pickup[1834]: C102122138: uid=48 from=
Oct 4 14:27:45 localhost postfix/cleanup[2606]: C102122138: message-id=
Oct 4 14:27:45 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], port=[44502], protocol=IMAP
Oct 4 14:27:45 localhost postfix/qmgr[1835]: C102122138: from=, size=673, nrcpt=1 (queue active)
Oct 4 14:27:45 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=628, sent=204, time=0
Oct 4 14:27:45 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:27:45 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], port=[44506], protocol=IMAP
Oct 4 14:27:45 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:127.0.0.1], headers=1461, body=0, rcvd=296, sent=3767, time=0
Oct 4 14:27:46 localhost postfix/smtpd[2614]: connect from unknown[127.0.0.1]
Oct 4 14:27:46 localhost postfix/smtpd[2614]: EBCEF220C2: client=unknown[127.0.0.1]
Oct 4 14:27:46 localhost postfix/cleanup[2606]: EBCEF220C2: message-id=
Oct 4 14:27:47 localhost postfix/qmgr[1835]: EBCEF220C2: from=, size=1172, nrcpt=1 (queue active)
Oct 4 14:27:47 localhost amavis[1869]: (01869-01) Passed CLEAN, [189.202.31.240] [189.202.31.240] -> , Message-ID: , mail_id: qBHwtbqvvJio, Hits: -0.001, size: 673, queued_as: EBCEF220C2, 1211 ms
Oct 4 14:27:47 localhost postfix/smtp[2609]: C102122138: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1.3, delays=0.08/0/0/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01869-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as EBCEF220C2)
Oct 4 14:27:47 localhost postfix/qmgr[1835]: C102122138: removed
Oct 4 14:28:08 localhost postfix/smtp[2620]: connect to gmail-smtp-in.l.google.com[74.125.157.27]:25: Connection timed out
Oct 4 14:28:29 localhost postfix/smtp[2620]: connect to alt1.gmail-smtp-in.l.google.com[74.125.113.26]:25: Connection timed out
Oct 4 14:28:29 localhost postfix/smtpd[1967]: timeout after END-OF-MESSAGE from unknown[127.0.0.1]
Oct 4 14:28:29 localhost postfix/smtpd[1967]: disconnect from unknown[127.0.0.1]
Oct 4 14:28:50 localhost postfix/smtp[2620]: connect to alt2.gmail-smtp-in.l.google.com[209.85.143.26]:25: Connection timed out
Oct 4 14:28:55 localhost imapd: Connection, ip=[::ffff:189.202.51.195]
Oct 4 14:28:55 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:189.202.51.195], port=[1216], protocol=IMAP
Oct 4 14:28:55 localhost imapd: Connection, ip=[::ffff:189.202.51.195]
Oct 4 14:28:55 localhost imapd: LOGIN, user=contacto@skulbits.com, ip=[::ffff:189.202.51.195], port=[1218], protocol=IMAP
Oct 4 14:29:11 localhost postfix/smtp[2620]: connect to alt3.gmail-smtp-in.l.google.com[209.85.229.27]:25: Connection timed out
Oct 4 14:29:32 localhost postfix/smtp[2620]: connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out
Oct 4 14:29:32 localhost postfix/smtp[2620]: EBCEF220C2: to=, relay=none, delay=105, delays=0.07/0.01/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.79.26]:25: Connection timed out)
Oct 4 14:29:41 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:189.202.51.195], headers=0, body=524, rcvd=415, sent=2762, time=46
Oct 4 14:29:41 localhost imapd: LOGOUT, user=contacto@skulbits.com, ip=[::ffff:189.202.51.195], headers=0, body=0, rcvd=65, sent=418, time=46
Oct 4 14:30:02 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:30:02 localhost imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
Oct 4 14:30:02 localhost pop3d: Connection, ip=[::ffff:127.0.0.1]
Oct 4 14:30:02 localhost pop3d: Disconnected, ip=[::ffff:127.0.0.1]


falko 5th October 2011 10:31

There's a problem with your domain - it doesn't have any records:

Code:

server1:~# dig any skulbits.com

; <<>> DiG 9.6-ESV-R1 <<>> any skulbits.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58867
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;skulbits.com.                  IN      ANY

;; Query time: 1217 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Oct  5 13:11:59 2011
;; MSG SIZE  rcvd: 30

server1:~#

Did you specify any nameservers when you registered that domain?

Here are more details: http://www.intodns.com/skulbits.com

maxtorzito 5th October 2011 15:28

1 Attachment(s)
Quote:

Originally Posted by falko (Post 264868)
There's a problem with your domain - it doesn't have any records:

Code:

server1:~# dig any skulbits.com

; <<>> DiG 9.6-ESV-R1 <<>> any skulbits.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58867
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;skulbits.com.                  IN      ANY

;; Query time: 1217 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Oct  5 13:11:59 2011
;; MSG SIZE  rcvd: 30

server1:~#

Did you specify any nameservers when you registered that domain?

Here are more details: http://www.intodns.com/skulbits.com

Sorry Falko i forgot to configure my server again in mi router when i left to work, now its plugged again, here are the details of dig

Code:

# dig any skulbits.com

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> any skulbits.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51614
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;skulbits.com.                        IN        ANY

;; ANSWER SECTION:
skulbits.com.                19244        IN        TXT        "v=spf1 a mx ptr -all"
skulbits.com.                9434        IN        A        189.202.31.240
skulbits.com.                9434        IN        MX        10 mail.skulbits.com.
skulbits.com.                9291        IN        NS        ns1.skulbits.com.
skulbits.com.                9291        IN        NS        ns2.skulbits.com.

;; AUTHORITY SECTION:
skulbits.com.                9291        IN        NS        ns2.skulbits.com.
skulbits.com.                9291        IN        NS        ns1.skulbits.com.

;; ADDITIONAL SECTION:
mail.skulbits.com.        18829        IN        A        189.202.31.240

;; Query time: 12 msec
;; SERVER: 10.160.0.25#53(10.160.0.25)
;; WHEN: Wed Oct  5 08:16:06 2011
;; MSG SIZE  rcvd: 180

netstat -tap]
Code:

netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address              Foreign Address            State      PID/Program name 
tcp        0      0 localhost.localdomain:10024 *:*                        LISTEN      1705/amavisd (maste
tcp        0      0 localhost.localdomain:10025 *:*                        LISTEN      1812/master       
tcp        0      0 *:mysql                    *:*                        LISTEN      1671/mysqld       
tcp        0      0 localhost.local:dyna-access *:*                        LISTEN      1545/clamd         
tcp        0      0 *:sunrpc                    *:*                        LISTEN      1179/rpcbind       
tcp        0      0 *:ftp                      *:*                        LISTEN      1846/pure-ftpd (SER
tcp        0      0 corporativo.preparat:domain *:*                        LISTEN      1284/named         
tcp        0      0 localhost.localdomai:domain *:*                        LISTEN      1284/named         
tcp        0      0 localhost.localdomain:ipp  *:*                        LISTEN      1367/cupsd         
tcp        0      0 *:smtp                      *:*                        LISTEN      1812/master       
tcp        0      0 localhost.localdomain:rndc  *:*                        LISTEN      1284/named         
tcp        0      0 *:47750                    *:*                        LISTEN      1310/rpc.statd     
tcp        1      0 corporativo.preparato:57364 www.howtoforge.com:http    CLOSE_WAIT  2314/firefox       
tcp        0      0 localhost.localdomain:33930 localhost.localdomain:mysql ESTABLISHED 2100/amavisd (ch2-a
tcp        0      0 localhost.localdomain:51018 localhost.localdomain:ftp  TIME_WAIT  -                 
tcp        0      0 localhost.localdomain:mysql localhost.localdomain:42354 ESTABLISHED 1671/mysqld       
tcp        1      0 corporativo.preparato:41521 a96-16-98-34.deploy.ak:http CLOSE_WAIT  2264/clock-applet 
tcp        0      0 corporativo.preparato:44984 74.125.227.91:http          ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:55998 74.125.227.90:http          TIME_WAIT  -                 
tcp        1      1 corporativo.preparato:35529 static.howtoforge.com:http  LAST_ACK    -                 
tcp        0      0 corporativo.preparato:38611 74.125.227.87:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:56000 74.125.227.90:http          TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:55259 a96-16-98-16.deploy.ak:http ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:48911 74.125.227.93:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:47127 tul01m01-in-f103.1e100:http ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:54103 localhost.localdomain:http  TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:55195 74.125.227.68:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:40118 gx-in-f84.1e100.net:https  ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:57344 www.howtoforge.com:http    TIME_WAIT  -                 
tcp        0      0 localhost.localdomain:50587 localhost.localdomai:domain TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:48691 74.125.227.92:http          TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:55214 74.125.227.92:http          ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:mysql localhost.localdomain:33930 ESTABLISHED 1671/mysqld       
tcp        0      0 corporativo.preparato:51753 74.125.227.78:http          TIME_WAIT  -                 
tcp        1      1 corporativo.preparato:37303 199.89.233.72.static.r:http LAST_ACK    -                 
tcp        0      0 corporativo.preparato:34426 74.125.227.86:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:43751 www-10-01-prn1.faceboo:http ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:56562 74.125.227.85:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:53460 gx-in-f132.1e100.net:https  ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:56001 74.125.227.90:http          TIME_WAIT  -                 
tcp        0      0 localhost.localdomain:42354 localhost.localdomain:mysql ESTABLISHED 22133/smtp         
tcp        0      0 corporativo.preparato:33323 74.125.227.90:http          ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:45202 74.125.227.78:http          ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:33931 localhost.localdomain:mysql ESTABLISHED 2101/amavisd (ch3-a
tcp        0      0 corporativo.preparato:39390 74.125.227.89:http          ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:40912 74.125.227.72:http          TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:56011 74.125.227.86:http          ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:55224 74.125.227.92:http          ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:33385 a96-16-98-40.deploy.ak:http TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:58954 tul01m01-in-f103.1e10:https ESTABLISHED 2314/firefox       
tcp        1      1 corporativo.preparato:35528 static.howtoforge.com:http  LAST_ACK    -                 
tcp        0      0 corporativo.preparato:55606 a96-16-98-40.deploy.ak:http ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:41223 74.125.227.92:https        ESTABLISHED 2314/firefox       
tcp        0      0 corporativo.preparato:33320 74.125.227.90:http          ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:mysql localhost.localdomain:33931 ESTABLISHED 1671/mysqld       
tcp        0      0 corporativo.preparato:56560 74.125.227.85:https        ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:42318 localhost.localdomain:mysql TIME_WAIT  -                 
tcp        0      0 corporativo.preparato:45757 a184-25-200-74.deploy.:http ESTABLISHED 2314/firefox       
tcp        0      0 localhost.localdomain:47138 localhost.localdomain:mysql TIME_WAIT  -                 
tcp        0      0 *:pop3                      *:*                        LISTEN      1731/couriertcpd   
tcp        0      0 *:imap                      *:*                        LISTEN      1718/couriertcpd   
tcp        0      0 *:sunrpc                    *:*                        LISTEN      1179/rpcbind       
tcp        0      0 *:webcache                  *:*                        LISTEN      1835/httpd         
tcp        0      0 *:http                      *:*                        LISTEN      1835/httpd         
tcp        0      0 *:tproxy                    *:*                        LISTEN      1835/httpd         
tcp        0      0 *:ftp                      *:*                        LISTEN      1846/pure-ftpd (SER
tcp        0      0 *:domain                    *:*                        LISTEN      1284/named         
tcp        0      0 localhost6.localdomain6:ipp *:*                        LISTEN      1367/cupsd         
tcp        0      0 *:37944                    *:*                        LISTEN      1310/rpc.statd     
tcp        0      0 *:smtp                      *:*                        LISTEN      1812/master       
tcp        0      0 localhost6.localdomain:rndc *:*                        LISTEN      1284/named         
tcp        0      0 *:https                    *:*                        LISTEN      1835/httpd         
tcp        0      0 *:imaps                    *:*                        LISTEN      1725/couriertcpd   
tcp        0      0 *:pop3s                    *:*                        LISTEN      1737/couriertcpd



iptables -L
Code:

iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination       
fail2ban-SSH  tcp  --  anywhere            anywhere            tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination       

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination       

Chain fail2ban-SSH (1 references)
target    prot opt source              destination       
RETURN    all  --  anywhere            anywhere

I have static IP and my ISP told me "THE PORT 25 IS NOT BLOCKED"

i would appreciate your help


All times are GMT +2. The time now is 05:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.