Re: Help with dmesg
Rem P Roberti wrote: if I remember rigth I had the same problem months ago, but I'm not really sure how I solved it. First try to delete the lines 44 - 49 of yourr's .cf file. then try to restart sendmail. if that doesn't work try dnl after every line in the .mc file. e.x INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m') dnl I think something like that I did and it works. But I'm not so sure. I decided to start from scratch, and got rid of all the files generated by the make command. So now my /etc/mail directory looks just as it did when I started. Instead of creating a whole new batch of files I decided to just start by running the newaliases command and here's what I got: root@ /etc/mail: newaliases /etc/mail/sendmail.cf: line 48: unknown configuration line clearly (I think) the problem has nothing to do with the files generated by make. Something appears to be messed up with sendmail.cf (at least according to the error message), but I don't see how that is possible. Line 48 in /etc/mail/sendmail.cf is blank! Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org The screen doesn't print all characters. 3 examples are 0x00, 0x0a, 0x0d. NULL, and (newline/return). I have a feeling there's a unprintable character in there and sendmail's bawking at it. I don't use sendmail, personally -- too inexperienced and the configuration process confuses me. So in layman terms: Clear all blank and commented lines out of the .cf file For good measure, hexdump the saved file to see if you find any abnormal characters for sendmail. What I'm unsure of, is after clearing the .cf file up, does sendmail have this configuration in memory so it will CONSTANTLY complain until a new config is generated? This, compared to say any other common app that reads it's .conf file at startup and doesn't keep any of it as part of the binary itself. I feel I didn't explain this very well. PLEASE notify me if you feel this is true. I'll try to re-explain myself differently then. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
re: Help with dmesg (problem solved)
OK...follow me through on this one. The line 48 that was referred to in the error message as being in sendmail.cf was actually line 48 in the /etc/mail/freebsd.mc file, and subsequently in the hostname.mc file that is created with the make command. That line is: OSTYPE(freebsd6), and it points to .m4 files in the /usr/share/sendmail/cf/ostype directory. Well, I had changed (don't even ask me why) OSTYPE(freebsd6) to OSTYPE(freebsd7.1) in the before mentioned files and, of course, there is no .m4 file that references freebsd7.1. This messed up everything. Once I put everything back the way it is supposed to be, and carefully followed the clamav installation instructions...guess what. All is well. There is a lesson here, and hopefully I have learned it. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Help with dmesg
I just finished installing clamav with clamav-milter and everything seems to be loading fine via rc.conf. But I get this message at bootup and I have no idea what gives: 554 5.0.0 /etc/mail/sendmail.cf: line 48: unknown configuration line Jan 7 23:32:32 bsd sm-mta[1307]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 48: unknown configuration line \n As stated earlier clamav is loading fine, and freshclam is updating the database at startup. I would appreciate some enlightenment as to the meaning of the dmesg. TIA, Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Rem P Roberti wrote: I just finished installing clamav with clamav-milter and everything seems to be loading fine via rc.conf. But I get this message at bootup and I have no idea what gives: 554 5.0.0 /etc/mail/sendmail.cf: line 48: unknown configuration line Jan 7 23:32:32 bsd sm-mta[1307]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 48: unknown configuration line \n I suppose you modified your sendmail config through the .mc-file. Can you show us that one? Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Peter Boosten wrote: Rem P Roberti wrote: I just finished installing clamav with clamav-milter and everything seems to be loading fine via rc.conf. But I get this message at bootup and I have no idea what gives: 554 5.0.0 /etc/mail/sendmail.cf: line 48: unknown configuration line Jan 7 23:32:32 bsd sm-mta[1307]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 48: unknown configuration line \n I suppose you modified your sendmail config through the .mc-file. Can you show us that one? Peter Here is the complete contents of the file I modified, which is a copy of freebsd.mc: divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3 2008/08/31 18:26:27 gshapiro Exp $') OSTYPE(freebsd6) DOMAIN(generic) INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. dnl FEATURE(relay_based_on_MX) dnl DNS based black hole lists dnl dnl DNS based black hole lists come and go on a regular basis dnl so this file will not serve as a database of the available servers. dnl For that, visit dnl http://www.google.com/Top/Computers/Internet/E-mail/Spam/Blacklists/ dnl Uncomment to activate Realtime Blackhole List dnl information available at http://www.mail-abuse.com/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl) dnl Alternatively, you can provide your own server and rejection message: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', ``550 Mail from ${client_addr} rejected, see http://mail-abuse.org/cgi-bin/lookup?; ${client_addr}'') dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') dnl Uncomment the first line to change the location of the default dnl /etc/mail/local-host-names and comment out the second line. dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Enable for both IPv4 and IPv6 (optional) DAEMON_OPTIONS(`Name=IPv4, Family=inet') DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confBIND_OPTS', `WorkAroundBroken') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) The only line I modified was the 5th line down beginning INPUT_MAIL_FILTER... Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Rem P Roberti wrote: Peter Boosten wrote: Rem P Roberti wrote: I just finished installing clamav with clamav-milter and everything seems to be loading fine via rc.conf. But I get this message at bootup and I have no idea what gives: 554 5.0.0 /etc/mail/sendmail.cf: line 48: unknown configuration line Jan 7 23:32:32 bsd sm-mta[1307]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 48: unknown configuration line \n I suppose you modified your sendmail config through the .mc-file. Can you show us that one? Peter Here is the complete contents of the file I modified, which is a copy of freebsd.mc: divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.3 2008/08/31 18:26:27 gshapiro Exp $') OSTYPE(freebsd6) DOMAIN(generic) INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') FEATURE(access_db, `hash -o -TTMPF /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. dnl FEATURE(relay_based_on_MX) dnl DNS based black hole lists dnl dnl DNS based black hole lists come and go on a regular basis dnl so this file will not serve as a database of the available servers. dnl For that, visit dnl http://www.google.com/Top/Computers/Internet/E-mail/Spam/Blacklists/ dnl Uncomment to activate Realtime Blackhole List dnl information available at http://www.mail-abuse.com/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl) dnl Alternatively, you can provide your own server and rejection message: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', ``550 Mail from ${client_addr} rejected, see http://mail-abuse.org/cgi-bin/lookup?; ${client_addr}'') dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') dnl Uncomment the first line to change the location of the default dnl /etc/mail/local-host-names and comment out the second line. dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Enable for both IPv4 and IPv6 (optional) DAEMON_OPTIONS(`Name=IPv4, Family=inet') DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confBIND_OPTS', `WorkAroundBroken') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) The only line I modified was the 5th line down beginning INPUT_MAIL_FILTER... Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Well, that didn't come out right. All of the lines having the word FEATURE in them are separate lines. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Peter Boosten wrote: Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter I actually copied that line directly from instructions at this site : http://www.technoids.org/clamav-milter.html The same setup is working on an old laptop of mine. I checked to make sure that the lines in /etc/mail/myfile.mc were the same in both cases, and they are. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Peter Boosten wrote: Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter BTW, I noticed that when I try to do a newaliases command the same error message comes up: /etc/mail/sendmail.cf: line 48: unknown configuration line Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Rem P Roberti wrote: Peter Boosten wrote: Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter BTW, I noticed that when I try to do a newaliases command the same error message comes up: /etc/mail/sendmail.cf: line 48: unknown configuration line What's in your sendmail.cf then? Display lines 40 - 60. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
Peter Boosten wrote: Rem P Roberti wrote: Peter Boosten wrote: Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter BTW, I noticed that when I try to do a newaliases command the same error message comes up: /etc/mail/sendmail.cf: line 48: unknown configuration line What's in your sendmail.cf then? Display lines 40 - 60. Peter Here are the actual sendmail.cf lines 41-59: 41 # $Id: redirect.m4,v 8.15 1999/08/06 01:47:36 gshapiro Exp $ # 42 43 # $Id: use_cw_file.m4,v 8.11 2001/08/26 20:58:57 gshapiro Exp $ # 44 45 46 47 48 49 50 # $Id: access_db.m4,v 8.27 2006/07/06 21:10:10 ca Exp $ # 51 52 53 # $Id: blacklist_recipients.m4,v 8.13 1999/04/02 02:25:13 gshapiro Exp $ # 54 55 56 # $Id: local_lmtp.m4,v 8.17 2002/11/17 04:41:04 ca Exp $ # 57 58 59 # $Id: mailertable.m4,v 8.25 2002/06/27 Not very interesting, is it. I have the feeling that this problem belongs on another list. Thanks for the help, Peter. I will continue to watch here. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Help with dmesg
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I actually copied that line directly from instructions at this site : http://www.technoids.org/clamav-milter.html The same setup is working on an old laptop of mine. I checked to make sure that the lines in /etc/mail/myfile.mc were the same in both cases, and they are. I actually just had this today as well. I was mimicing our company's mail server so that I'd have a 'backup'... now when you said you 'copied' the line directly, did you copy/paste? That was my problem, something got put in there that wasn't supposed to be. After I deleted that line, then typed it in properly by hand everything worked. Here is my line for sanity's sake: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=,T=S:4m;R:4m')dnl Like I said, everything looked exactly the same, but after I typed it in manually, it worked. _ Windows Live™: Keep your life in sync. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_allup_howitworks_012009___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Help with dmesg
From: demonichandextensi...@hotmail.com To: remeg...@comcast.net; pe...@boosten.org Date: Thu, 8 Jan 2009 17:02:22 + CC: freebsd-questions@freebsd.org Subject: RE: Help with dmesg INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I actually copied that line directly from instructions at this site : http://www.technoids.org/clamav-milter.html The same setup is working on an old laptop of mine. I checked to make sure that the lines in /etc/mail/myfile.mc were the same in both cases, and they are. I actually just had this today as well. I was mimicing our company's mail server so that I'd have a 'backup'... now when you said you 'copied' the line directly, did you copy/paste? That was my problem, something got put in there that wasn't supposed to be. After I deleted that line, then typed it in properly by hand everything worked. Here is my line for sanity's sake: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=,T=S:4m;R:4m')dnl Like I said, everything looked exactly the same, but after I typed it in manually, it worked. _sorry to double-post, but I also have this line directly below the INPUT_*** line: define(confINPUT_MAIL_FILTERS',`clmilter') _ Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I actually copied that line directly from instructions at this site : http://www.technoids.org/clamav-milter.html The same setup is working on an old laptop of mine. I checked to make sure that the lines in /etc/mail/myfile.mc were the same in both cases, and they are. I actually just had this today as well. I was mimicing our company's mail server so that I'd have a 'backup'... now when you said you 'copied' the line directly, did you copy/paste? That was my problem, something got put in there that wasn't supposed to be. After I deleted that line, then typed it in properly by hand everything worked. Here is my line for sanity's sake: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=,T=S:4m;R:4m')dnl Like I said, everything looked exactly the same, but after I typed it in manually, it worked. Well, I re-typed the entry and still no dice. Here is the message I get when I try to do a make after making the change: root@ /etc/mail: make /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 bsd.remdog.net.mc bsd.remdog.net.cf /usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases /etc/mail/sendmail.cf: line 48: unknown configuration line *** Error code 70 And newaliases continues to give me the same error message as before. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
O/H Rem P Roberti έγραψε: Peter Boosten wrote: Rem P Roberti wrote: Peter Boosten wrote: Rem P Roberti wrote: INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m') I don't think the F= parameter can be empty (IIRC): it describes what your sendmail is supposed to do once clam isn't active (either 'F=R' for reject or 'F=T' for temporary unavailable). Peter BTW, I noticed that when I try to do a newaliases command the same error message comes up: /etc/mail/sendmail.cf: line 48: unknown configuration line What's in your sendmail.cf then? Display lines 40 - 60. Peter Here are the actual sendmail.cf lines 41-59: 41 # $Id: redirect.m4,v 8.15 1999/08/06 01:47:36 gshapiro Exp $ # 42 43 # $Id: use_cw_file.m4,v 8.11 2001/08/26 20:58:57 gshapiro Exp $ # 44 45 46 47 48 49 50 # $Id: access_db.m4,v 8.27 2006/07/06 21:10:10 ca Exp $ # 51 52 53 # $Id: blacklist_recipients.m4,v 8.13 1999/04/02 02:25:13 gshapiro Exp $ # 54 55 56 # $Id: local_lmtp.m4,v 8.17 2002/11/17 04:41:04 ca Exp $ # 57 58 59 # $Id: mailertable.m4,v 8.25 2002/06/27 Not very interesting, is it. I have the feeling that this problem belongs on another list. Thanks for the help, Peter. I will continue to watch here. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org if I remember rigth I had the same problem months ago, but I'm not really sure how I solved it. First try to delete the lines 44 - 49 of yourr's .cf file. then try to restart sendmail. if that doesn't work try dnl after every line in the .mc file. e.x INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m') dnl I think something like that I did and it works. But I'm not so sure. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Help with dmesg
if I remember rigth I had the same problem months ago, but I'm not really sure how I solved it. First try to delete the lines 44 - 49 of yourr's .cf file. then try to restart sendmail. if that doesn't work try dnl after every line in the .mc file. e.x INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock,F=, T=S:4m;R:4m') dnl I think something like that I did and it works. But I'm not so sure. I decided to start from scratch, and got rid of all the files generated by the make command. So now my /etc/mail directory looks just as it did when I started. Instead of creating a whole new batch of files I decided to just start by running the newaliases command and here's what I got: root@ /etc/mail: newaliases /etc/mail/sendmail.cf: line 48: unknown configuration line clearly (I think) the problem has nothing to do with the files generated by make. Something appears to be messed up with sendmail.cf (at least according to the error message), but I don't see how that is possible. Line 48 in /etc/mail/sendmail.cf is blank! Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org