HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Issues with Postfix, Courier, MySQL And SquirrelMail after server crash (http://www.howtoforge.com/forums/showthread.php?t=46238)

beno 30th May 2010 23:38

Issues with Postfix, Courier, MySQL And SquirrelMail after server crash
 
I'm an absolute newbie to unix so pls be patient ;)
I have been assigned to try and make a Postfix mailsystem work again. What happened is that the server crashed (HDD damaged/replaced) the files were restored from backup. Of course postfix doesn't work anymore.
I tried to follow the documentation the person who set this up initally also followed: http://www.howtoforge.com/virtual-us...ebian-lenny-p2 however with not much luck. Every time i had a problem or ecountered an error message I looked up google and got to the next step, up until the point where i can't get answers anymore from google.

The problem now is that I cannot get into SquirrelMail (ERROR: Connection dropped by IMAP server) with any of the active accounts and the only error message I get from the mail.log is this:

Code:

May 30 23:08:37 srv1 imapd: Connection, ip=[::ffff:127.0.0.1]
Let me know if you need more information or the content of any file and I'll answer as soon as I can as I'm trying to figure this out for 2 days now (the whole weekend) and don't seem to get to the end...

Any help would be much appreciated! Thx a lot in advance!

EDITED: almost forgot something: mailx delivers the message, telnet localhost 25 is answering ok too, can logont to mySQL fine, tables seem to be ok...

EDITED2 (more info): Extract of my /etc/postfix/main.cf (I replaced the real domain names by mydomain.eu, myotherdomain.com, and mythird-domain.com, and the password by Pa55word everywhere below):

Code:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = srv1.mydomain.eu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = srv1.mydomain.eu, myotherdomain.com, mythird-domain.com, localhost, localhost.localdomain
#mydestination = srv1.mydomain.eu, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
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 = /home/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, reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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
# Neu eingefuegt:
#relay_domains = $mydestination

Extract of my /etc/postfix/master.cf

Code:

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# 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      -      -      -      -      smtpd -v
#submission inet n      -      -      -      -      smtpd
#  -o smtpd_tls_security_level=encrypt

#hier geändert wegen Nichtannahme von Mails:
  -o smtpd_sasl_auth_enable=yes


#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps    inet  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      -      -      -      -      qmqpd
pickup    fifo  n      -      -      60      1      pickup
cleanup  unix  n      -      -      -      0      cleanup
qmgr      fifo  n      -      n      300    1      qmgr
#qmgr    fifo  n      -      -      300    1      oqmgr
tlsmgr    unix  -      -      -      1000?  1      tlsmgr
rewrite  unix  -      -      -      -      -      trivial-rewrite
bounce    unix  -      -      -      -      0      bounce
defer    unix  -      -      -      -      0      bounce
trace    unix  -      -      -      -      0      bounce
verify    unix  -      -      -      -      1      verify
flush    unix  n      -      -      1000?  0      flush
proxymap  unix  -      -      n      -      -      proxymap
proxywrite unix -      -      n      -      1      proxymap
smtp      unix  -      -      -      -      -      smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay    unix  -      -      -      -      -      smtp
        -o smtp_fallback_relay=
#      -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq    unix  n      -      -      -      -      showq
error    unix  -      -      -      -      -      error
retry    unix  -      -      -      -      -      error
discard  unix  -      -      -      -      -      discard
local    unix  -      n      n      -      -      local
virtual  unix  -      n      n      -      -      virtual
lmtp      unix  -      -      -      -      -      lmtp
anvil    unix  -      -      -      -      1      anvil
scache    unix  -      -      -      -      1      scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -      n      n      -      -      pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -      n      n      -      -      pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -      n      n      -      -      pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp    unix  -      n      n      -      -      pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix        -        n        n        -        2        pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman  unix  -      n      n      -      -      pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

####################################
#Neu angefügt:
####################################
#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

Extract of my /etc/postfix/sasl/smtpd.conf

Code:

pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: Pa55word
sql_database: mail
sql_select: select password from users where email = '%u'

Extract of my /etc/courier/authmysqlrc

Code:

MYSQL_SERVER localhost
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD Pa55word
MYSQL_PORT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
#MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD "/home/vmail"
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
#MYSQL_NAME_FIELD
MYSQL_QUOTA_FIELD quota

And finally, extract of my /etc/mysql/my.cnf

Code:

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port                = 3306
socket                = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket                = /var/run/mysqld/mysqld.sock
nice                = 0

[mysqld]
#
# * Basic Settings
#
user                = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket                = /var/run/mysqld/mysqld.sock
port                = 3306
basedir                = /usr
datadir                = /var/lib/mysql
tmpdir                = /tmp
language        = /usr/share/mysql/english
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address                = 127.0.0.1
#
# * Fine Tuning
#
key_buffer                = 16M
max_allowed_packet        = 16M
thread_stack                = 128K
thread_cache_size        = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover                = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency    = 10
#
# * Query Cache Configuration
#
query_cache_limit      = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
log                = /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
#log_slow_queries        = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#      other settings you may need to change.
#server-id                = 1
#log_bin                        = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size        = 100M
#binlog_do_db                = include_database_name
#binlog_ignore_db        = include_database_name
#
# * BerkeleyDB
#
# Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
#skip-innodb
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet        = 16M

[mysql]
#no-auto-rehash        # faster start of mysql but no tab completition

[isamchk]
key_buffer                = 16M

#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1


#
# * IMPORTANT: Additional settings that can override those from this file!
#  The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

Hope this helps! Thx

falko 31st May 2010 14:36

You need to have
Code:

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

at the end of /etc/postfix/master.cf.

beno 31st May 2010 14:54

thanks but still no luck...
 
Thank you falco for the quick answer, however after adding those lines and restarting postfix, i can still not logon to squirrelmail using mydomain.eu/squirrelmail and webmaster@mydomain.eu

error message by SquirrelMail is still:

Code:

ERROR: Connection dropped by IMAP server.
in mail.log:

Code:

May 31 14:51:02 srv1 imapd: Connection, ip=[::ffff:127.0.0.1]
EDITED: to be more precise, let me paste the /etc/postfix/master.cf file's contents here (the original file had most of it commented out, i simply removed that part and added yours:

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      -      -      -      -      smtpd -v
#submission inet n      -      -      -      -      smtpd
#  -o smtpd_tls_security_level=encrypt

#hier geändert wegen Nichtannahme von Mails:
  -o smtpd_sasl_auth_enable=yes


#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps    inet  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      -      -      -      -      qmqpd
pickup    fifo  n      -      -      60      1      pickup
cleanup  unix  n      -      -      -      0      cleanup
qmgr      fifo  n      -      n      300    1      qmgr
#qmgr    fifo  n      -      -      300    1      oqmgr
tlsmgr    unix  -      -      -      1000?  1      tlsmgr
rewrite  unix  -      -      -      -      -      trivial-rewrite
bounce    unix  -      -      -      -      0      bounce
defer    unix  -      -      -      -      0      bounce
trace    unix  -      -      -      -      0      bounce
verify    unix  -      -      -      -      1      verify
flush    unix  n      -      -      1000?  0      flush
proxymap  unix  -      -      n      -      -      proxymap
proxywrite unix -      -      n      -      1      proxymap
smtp      unix  -      -      -      -      -      smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay    unix  -      -      -      -      -      smtp
        -o smtp_fallback_relay=
#      -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq    unix  n      -      -      -      -      showq
error    unix  -      -      -      -      -      error
retry    unix  -      -      -      -      -      error
discard  unix  -      -      -      -      -      discard
local    unix  -      n      n      -      -      local
virtual  unix  -      n      n      -      -      virtual
lmtp      unix  -      -      -      -      -      lmtp
anvil    unix  -      -      -      -      1      anvil
scache    unix  -      -      -      -      1      scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -      n      n      -      -      pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -      n      n      -      -      pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -      n      n      -      -      pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp    unix  -      n      n      -      -      pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix        -        n        n        -        2        pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman  unix  -      n      n      -      -      pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

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

I hope you can help still...

falko 2nd June 2010 00:47

Are there any other errors in mail.log?
What's the output of
Code:

netstat -tap
?

fbnewtz 2nd June 2010 03:11

In your authdaemonrc turn

DEBUG_LOGIN=0

to

DEBUG_LOGIN=1


You might get some more information on what is happening.

beno 2nd June 2010 08:44

is this relevant?
 
DEBUG_LOGIN was not part of the file, so i added it at the end, however nothing changed in the mail.log - is this supposed to put the logs somewhere else?

in the meantime i realized something is happening at times i don't touch anything and it repeats almost always at the same time, once at midnight and another time at 6.25 am:

Code:

Jun  2 00:00:01 srv1 postfix/pickup[20172]: 1A45040216: uid=0 from=<root>
Jun  2 00:00:01 srv1 postfix/cleanup[20220]: 1A45040216: message-id=<20100601220001.1A45040216@srv1.mydomain.eu>
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 1A45040216: from=<root@localhost>, size=511, nrcpt=1 (queue active)
Jun  2 00:00:01 srv1 postfix/trivial-rewrite[20222]: warning: do not list domain mythird-domain.com in BOTH mydestination and virtual_mailbox_domains
Jun  2 00:00:01 srv1 postfix/local[20223]: 1A45040216: to=<m.p@mythird-domain.com>, orig_to=<postmaster@mydomain.eu>, relay=local, delay=0.07, delays=0.04/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "m.p")
Jun  2 00:00:01 srv1 postfix/cleanup[20220]: 26A5340217: message-id=<20100601220001.26A5340217@srv1.mydomain.eu>
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 26A5340217: from=<>, size=2318, nrcpt=1 (queue active)
Jun  2 00:00:01 srv1 postfix/cleanup[20220]: 2C0A540219: message-id=<20100601220001.26A5340217@srv1.mydomain.eu>
Jun  2 00:00:01 srv1 postfix/bounce[20224]: 1A45040216: sender non-delivery notification: 26A5340217
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 1A45040216: removed
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 2C0A540219: from=<>, size=2448, nrcpt=1 (queue active)
Jun  2 00:00:01 srv1 postfix/local[20223]: 26A5340217: to=<root@localhost>, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=2.0.0, status=sent (forwarded as 2C0A540219)
Jun  2 00:00:01 srv1 postfix/trivial-rewrite[20222]: warning: do not list domain mythird-domain.com in BOTH mydestination and virtual_mailbox_domains
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 26A5340217: removed
Jun  2 00:00:01 srv1 postfix/local[20223]: 2C0A540219: to=<m.p@mythird-domain.com>, orig_to=<root@localhost>, relay=local, delay=0.03, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "m.p")
Jun  2 00:00:01 srv1 postfix/qmgr[18873]: 2C0A540219: removed
Jun  2 06:25:02 srv1 postfix/pickup[20368]: 082B240216: uid=0 from=<root>
Jun  2 06:25:02 srv1 postfix/cleanup[20503]: 082B240216: message-id=<20100602042502.082B240216@srv1.mydomain.eu>
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 082B240216: from=<root@localhost>, size=806, nrcpt=1 (queue active)
Jun  2 06:25:02 srv1 postfix/cleanup[20503]: 0F72440215: message-id=<20100602042502.082B240216@srv1.mydomain.eu>
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 0F72440215: from=<root@localhost>, size=936, nrcpt=1 (queue active)
Jun  2 06:25:02 srv1 postfix/trivial-rewrite[20505]: warning: do not list domain mythird-domain.com in BOTH mydestination and virtual_mailbox_domains
Jun  2 06:25:02 srv1 postfix/local[20506]: 082B240216: to=<root@localhost>, orig_to=<root>, relay=local, delay=0.62, delays=0.61/0.01/0/0.01, dsn=2.0.0, status=sent (forwarded as 0F72440215)
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 082B240216: removed
Jun  2 06:25:02 srv1 postfix/local[20506]: 0F72440215: to=<m.p@mythird-domain.com>, orig_to=<root>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "m.p")
Jun  2 06:25:02 srv1 postfix/cleanup[20503]: 12FFE40218: message-id=<20100602042502.12FFE40218@srv1.mydomain.eu>
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 12FFE40218: from=<>, size=2696, nrcpt=1 (queue active)
Jun  2 06:25:02 srv1 postfix/cleanup[20503]: 163D040219: message-id=<20100602042502.12FFE40218@srv1.mydomain.eu>
Jun  2 06:25:02 srv1 postfix/bounce[20507]: 0F72440215: sender non-delivery notification: 12FFE40218
Jun  2 06:25:02 srv1 postfix/local[20506]: 12FFE40218: to=<root@localhost>, relay=local, delay=0.02, delays=0.01/0/0/0, dsn=2.0.0, status=sent (forwarded as 163D040219)
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 12FFE40218: removed
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 163D040219: from=<>, size=2826, nrcpt=1 (queue active)
Jun  2 06:25:02 srv1 postfix/trivial-rewrite[20505]: warning: do not list domain mythird-domain.com in BOTH mydestination and virtual_mailbox_domains
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 0F72440215: removed
Jun  2 06:25:02 srv1 postfix/local[20506]: 163D040219: to=<m.p@mythird-domain.com>, orig_to=<root@localhost>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "m.p")
Jun  2 06:25:02 srv1 postfix/qmgr[18873]: 163D040219: removed


beno 2nd June 2010 08:56

output of netstat -tap
 
@falko, the output of netstat -tap

Code:

srv1:~# 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:10025        *:*                    LISTEN      18871/master
tcp        0      0 localhost:3305          *:*                    LISTEN      6393/mysqld
tcp        0      0 localhost:mysql        *:*                    LISTEN      8616/mysqld
tcp        0      0 localhost:746          *:*                    LISTEN      2266/famd
tcp        0      0 *:sunrpc                *:*                    LISTEN      1708/portmap
tcp        0      0 *:ssh                  *:*                    LISTEN      1961/sshd
tcp        0      0 *:49078                *:*                    LISTEN      1719/rpc.statd
tcp        0      0 *:smtp                  *:*                    LISTEN      18871/master
tcp        0    52 srv1.mydomain.eu:ssh 92-249-162-132.poo:2165 ESTABLISHED 20587/1
tcp        0      0 srv1.mydomain.eu:ssh 92-249-162-132.poo:1888 ESTABLISHED 20566/sshd: root@no
tcp        0      0 srv1.mydomain.eu:ssh 92-249-162-132.poo:1901 ESTABLISHED 20570/sshd: root@no
tcp6      0      0 [::]:imaps              [::]:*                  LISTEN      8123/couriertcpd
tcp6      0      0 [::]:pop3s              [::]:*                  LISTEN      8154/couriertcpd
tcp6      0      0 [::]:8009              [::]:*                  LISTEN      2323/jsvc
tcp6      0      0 [::]:pop3              [::]:*                  LISTEN      8136/couriertcpd
tcp6      0      0 [::]:imap2              [::]:*                  LISTEN      8101/couriertcpd
tcp6      0      0 [::]:www                [::]:*                  LISTEN      4921/apache2
tcp6      0      0 [::]:8180              [::]:*                  LISTEN      2323/jsvc
tcp6      0      0 [::]:ssh                [::]:*                  LISTEN      1961/sshd
tcp6      0      0 [::]:telnet            [::]:*                  LISTEN      2265/xinetd


falko 2nd June 2010 18:18

It seems as if amavisd isn't running. Please start it.

Quote:

Jun 2 06:25:02 srv1 postfix/trivial-rewrite[20505]: warning: do not list domain mythird-domain.com in BOTH mydestination and virtual_mailbox_domains
http://www.howtoforge.com/forums/sho...ailbox_domains

beno 2nd June 2010 19:15

i was asked not to install
 
it doesn't seem to have been installed as my client asked me not to install any spam filter, is there a way around this?

falko 3rd June 2010 15:09

Then you must remove
Code:

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

from your master.cf and restart Postfix.


All times are GMT +2. The time now is 21:44.

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