LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2006, 01:44 AM   #1
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
amavisd-new doesnt want to delete


i earsed amavisd-new (rpm -e) from my server
i delete all the lines from master.cf and main.cf
but still it say

Quote:
Aug 4 09:41:05 mail postfix/qmgr[28299]: warning: connect to transport smtp-amavis: Connection refused
why?
 
Old 08-04-2006, 02:09 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you stop the amavisd daemon first?
 
Old 08-04-2006, 04:19 AM   #3
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Original Poster
Rep: Reputation: 15
sure. thats what i get when i do pgrep to amavid
Quote:
[root@mail ~]# pgrep amavisd
[root@mail ~]#
 
Old 08-04-2006, 06:35 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then did you restart (as opposed to reload) postfix?

Edit - what is in your transport file?

Edit 2 - did you do a search in main.cf and master.cf for 10024 and 10025 (I assume you were forwarding to amavisd-new as a content filter).

Last edited by billymayday; 08-04-2006 at 04:17 PM.
 
Old 08-04-2006, 07:32 AM   #5
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Original Poster
Rep: Reputation: 15
i did restar.
i dont have a transport map(i think)(transport map is optional)
yha i searched for 10024.
this is my main.cf
Quote:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
mydomain = example.com
myorigin = $mydomain
mydestination = localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options=noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, rej ect_unauth_destination, check_relay_domains


#html_directory = no
#manpage_directory = /usr/share/man
#sample_directory = /usr/share/doc/postfix-2.1.5/samples
#readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
#content_filter = smtp-amavis:[127.0.0.1]:10024
 
Old 08-04-2006, 04:17 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I know you said you'd delted references in it, but can you please post your master.cf
 
Old 08-05-2006, 10:45 AM   #7
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Original Poster
Rep: Reputation: 15
i looked for files the belongs to amavis and i found 2 (one of them was the lock file).
i removed them both and it still did that.
so i reinstall postfix and its still did it!!!!!!!!
so i removed postfix and looked for postfix files and i found the main.cf.rpmsave which is my configuration backup
and i found directory inside /var/spool called postfix which contain lots of files, i guess part of them r the incoming mails.
but inside those directory there r some file connected to amavis. so i did a new search with better argument and i found another files and directory connected to amavis.
so i made did this command :
Quote:
find / -name *amavis* -exec rpm -qf {} \;
and found out which files dont belong to any package installed (i removed amavis-new package already)
and what i found out was :
Quote:
logwatch-5.2.2-1.EL4.1
logwatch-5.2.2-1.EL4.1
file /var/spool/postfix/private/smtp-amavis is not owned by any package
file /var/spool/postfix/private/amavis-new is not owned by any package
file /var/amavis is not owned by any package
so i deleted the 2 files that dont blongs to any package.
the third was a directory, i made a new search :
Quote:
find /var/amavis/ -name '*' -exec rpm -qf {} \;
file /var/amavis is not owned by any package
file /var/amavis/db is not owned by any package
file /var/amavis/db/nanny.db is not owned by any package
file /var/amavis/db/snmp.db is not owned by any package
file /var/amavis/db/cache-expiry.db is not owned by any package
file /var/amavis/db/__db.003 is not owned by any package
file /var/amavis/db/__db.002 is not owned by any package
file /var/amavis/db/cache.db is not owned by any package
file /var/amavis/db/__db.001 is not owned by any package
file /var/amavis/.spamassassin/auto-whitelist is not owned by any package
noone owned a package, byebye files (the same search but with rm -r)
lets installed postfix again shell we?
it didnt worked agin so this time i removed postfix find all the file he kept
on my system after removing and installed it again.
yes, it worked - the problam was solved

Last edited by doronunu; 08-05-2006 at 03:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amavisd Not Starting newuser455 Linux - Software 0 06-22-2006 01:23 PM
amavisd unused ?? Wynand1 SUSE / openSUSE 0 09-22-2005 07:50 AM
delete user that doesnt show up in Yast??! blink_00 Linux - Newbie 1 01-01-2005 03:09 PM
amavisd-new does not start Ateo Linux - Networking 1 12-28-2004 02:39 AM
Amavisd & Slackware PcHammer Linux - Software 0 07-17-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration