LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   amavisd-new doesnt want to delete (https://www.linuxquestions.org/questions/linux-software-2/amavisd-new-doesnt-want-to-delete-470645/)

doronunu 08-04-2006 01:44 AM

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?

billymayday 08-04-2006 02:09 AM

Did you stop the amavisd daemon first?

doronunu 08-04-2006 04:19 AM

sure. thats what i get when i do pgrep to amavid
Quote:

[root@mail ~]# pgrep amavisd
[root@mail ~]#

billymayday 08-04-2006 06:35 AM

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).

doronunu 08-04-2006 07:32 AM

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

billymayday 08-04-2006 04:17 PM

I know you said you'd delted references in it, but can you please post your master.cf

doronunu 08-05-2006 10:45 AM

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


All times are GMT -5. The time now is 06:02 AM.