Re: need some sendmail help
# [EMAIL PROTECTED] / 2003-02-15 00:41:42 +0200: On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200: You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Hi Giorgos, it was always my understanding that sendmail_enable=YES will turn Sendmail on wholesale: commandline submits, inbound, outbound. Not really. sendmail_enable=YES turns on only the non-localhost daemon. Note that I was wrong in my previous post, but for a different reason. Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the dequeueing of local mail will be automatically enabled. well, that's what I was trying to say: given the values in /etc/defaults/rc.conf, having only sendmail_enable=YES in /etc/rc.conf will enable Sendmail wholesale. on -STABLE, that is. -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 2003-02-17 16:41, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2003-02-15 00:41:42 +0200: it was always my understanding that sendmail_enable=YES will turn Sendmail on wholesale: commandline submits, inbound, outbound. Not really. sendmail_enable=YES turns on only the non-localhost daemon. [...] well, that's what I was trying to say: given the values in /etc/defaults/rc.conf, having only sendmail_enable=YES in /etc/rc.conf will enable Sendmail wholesale. on -STABLE, that is. Aye. I misunderstood you, then. Probably because sendmail_enable is not enough for enabling local mail delivery too. Sorry about that... To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 2003-02-14 17:11, Jack L. Stone [EMAIL PROTECTED] wrote: Giorgos: As a refresher, below are the /etc/defaults/rc.conf Unless, the /etc/rc.conf overrides, these turn on as stated. Based on the below, what is not turned on??? [...] sendmail_enable=YES # Run the sendmail inbound daemon (YES/NO/NONE). sendmail_submit_enable=YES# Start a localhost-only MTA for mail submission sendmail_outbound_enable=YES # Dequeue stuck mail (YES/NO). sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO). The defaults are a bit different in STABLE vs. CURRENT (note sendmail_enable=NO). In my CURRENT installation, the defaults are: sendmail_enable=NO # Run the sendmail inbound daemon (YES/NO). sendmail_submit_enable=YES # Start a localhost-only MTA for mail submission sendmail_outbound_enable=YES # Dequeue stuck mail (YES/NO). sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO). Well, anyway... The rc.sendmail script supports the following setups: Setup 1. Sendmail accepts mail both on localhost:25 and over the network at address:25 ports. When you set sendmail_enable=YES, it overrides two rc.conf variables, sendmail_submit_enable and sendmail_outbound_enable. A sendmail process is started with /var/spool/mqueue as the queue directory, and mail accepted over a connection to port 25 is delivered as usual through the /var/spool/mqueue queue. You have to also sendmail_msp_queue_enable=YES too in this case, to allow local users to deliver mail to Sendmail over an SMTP connection to localhost:25, or use a cron job. The MSP queue runner does *NOT* listen on any port, but runs periodically dequeueing mail from /var/spool/clientmqueue and passing it to the localhost:25 daemon (or any other host that you have configured in your submit.mc config file). Alternatively, you can keep sendmail_msp_queue_enable set to NO, and use a crontab entry to dequeue mail from clientmqueue by running: sendmail -q -Ac Note that you still have to create a valid submit.cf file, even if you use cron to dequeue mail from clientmqueue. Suggested rc.conf entries: - sendmail_enable=YES sendmail_msp_queue_enable=YES - 2. Sendmail accepts mail only over a connection to port 25 of the localhost interface. To make this work as expected, sendmail_enable should be NO and at the same time sendmail_submit_enable should be yes. Sendmail will start, but listen only on localhost:25 and use /var/spool/mqueue for mail that is received over an smtp connection to the localhost:25 port. This is a very nice setup for dialup users who don't want their Sendmail daemon to listen on any other interface; just loopback. Delivery of outgoing mail still works like a charm, since the daemon started by sendmail_submit_enable will periodically flush /var/spool/mqueue and send mail out. An MSP queue runner or cron job is needed in this sort of setup too. See above. Suggested rc.conf entries: - sendmail_enable=NO sendmail_submit_enable=YES sendmail_msp_queue_enable=YES - 3. Sendmail doesn't accept any sort of mail over smtp. It only runs the queue /var/spool/mqueue periodically. This is what sendmail_outbound_enable=YES is most useful for. There are two ways to do this. One of them is with a setuid sendmail process, and one without. 3.a. Setuid-root sendmail process Follow the instructions in /etc/mail/README for changing back to a setuid-root Sendmail setup: chown root /usr/libexec/sendmail/sendmail chmod 4755 /usr/libexec/sendmail/sendmail rm /etc/mail/submit.cf 3.b. Non-setuid root Sendmail process A bit tricky; you have to manually copy sendmail.cf to submit.cf and set DeliveryMode=queue in submit.cf. This is a setup that I haven't tested a lot, but I'll have some time this weekend. Note: You can not use a clientmqueue runner with this sort of setup, because there is no daemon on localhost:25 to receive the connections from the clientmqueue runner. Suggested rc.conf entries: - sendmail_enable=NO sendmail_submit_enable=NO
Re: need some sendmail help
# [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200: On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote: On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? ayn@NGBERT:/etcgrep sendmail rc.conf sendmail_enable=YES This is where the problem lies. You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Hi Giorgos, it was always my understanding that sendmail_enable=YES will turn Sendmail on wholesale: commandline submits, inbound, outbound. rc.sendmail(8) certainly doesn't counter that interpretation, and reading /etc/defaults/rc.conf and /etc/rc.sendmail confirms it... Or I'm reading it wrong, which is more than possible. -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200: You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Hi Giorgos, it was always my understanding that sendmail_enable=YES will turn Sendmail on wholesale: commandline submits, inbound, outbound. Not really. sendmail_enable=YES turns on only the non-localhost daemon. Note that I was wrong in my previous post, but for a different reason. Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the dequeueing of local mail will be automatically enabled. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
At 12:41 AM 2.15.2003 +0200, Giorgos Keramidas wrote: On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200: You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Hi Giorgos, it was always my understanding that sendmail_enable=YES will turn Sendmail on wholesale: commandline submits, inbound, outbound. Not really. sendmail_enable=YES turns on only the non-localhost daemon. Note that I was wrong in my previous post, but for a different reason. Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the dequeueing of local mail will be automatically enabled. Giorgos: As a refresher, below are the /etc/defaults/rc.conf Unless, the /etc/rc.conf overrides, these turn on as stated. Based on the below, what is not turned on??? ### Mail Transfer Agent (MTA) options ## ## mta_start_script=/etc/rc.sendmail # Script to start your chosen MTA, called by /etc/rc. # Settings for /etc/rc.sendmail: sendmail_enable=YES # Run the sendmail inbound daemon (YES/NO/NONE). # If NONE, don't start any sendmail processes. sendmail_flags=-L sm-mta -bd -q30m # Flags to sendmail (as a server) sendmail_submit_enable=YES# Start a localhost-only MTA for mail submission sendmail_submit_flags=-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost # Flags for localhost-only MTA sendmail_outbound_enable=YES # Dequeue stuck mail (YES/NO). sendmail_outbound_flags=-L sm-queue -q30m # Flags to sendmail (outbound only) sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO). sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q30m # Flags for sendmail_msp_queue daemon. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
PS: If you're about to ask ``Why isn't all this in the Handbook already?'' suffice it to say that I've been experimenting and reading about Sendmail a lot the past few weeks. I'm trying now to collect all the notes from the mess I have in my bedroom and sit my lazy *ss down to write a new Sendmail chapter for the Handbook. Thank you for your fine writeup! For some time I have been struggling to set up a network with the following configuration: 2x R4.7p4s and 1x W2k boxes on the local LAN and a R4.6 box as the gateway to the world on a ADSL line. A registered domain is pointing to my fixed IP address. All boxes can exchange mail on the LAN, send mail to the wide world and fetch mail using fetchmail. But mail to my registered domain seems to go to device zero. I am left with questions like what is the difference in sendmail configuration between the LAN PCs and the gateway PC? How can I check that my ISP has me set up properly for resolving reverse lookups? My MX records at zoneedit.com? Will my ISPs mail server cooperate? When you write the new Handbook chapter I hope you will keep the home user in mind and cover some of my points. And of course, if you should have any references that I should consult, I would appreciate any pointer! Thank you from Kjell To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? - What options have you configured in your /etc/mail/*.mc files? - What are the contents of /etc/resolv.conf, /etc/host.conf and /etc/hosts files? Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? ayn@NGBERT:/etcgrep sendmail rc.conf sendmail_enable=YES - What options have you configured in your /etc/mail/*.mc files? ayn@NGBERT:/etc/mailgrep define *mc|grep -v dnl freebsd.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names') freebsd.mc:define(`confBIND_OPTS', `WorkAroundBroken') freebsd.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128') freebsd.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed') freebsd.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') ngbert.thelin.com.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names') ngbert.thelin.com.mc:define(`confBIND_OPTS', `WorkAroundBroken') ngbert.thelin.com.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128') ngbert.thelin.com.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed') ngbert.thelin.com.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') - What are the contents of /etc/resolv.conf, /etc/host.conf and /etc/hosts files? ayn@NGBERT:/etc/mailcat /etc/resolv.conf search attbi.com nameserver 63.240.76.19 nameserver 204.127.198.19 ayn@NGBERT:/etc/mailcat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis ayn@NGBERT:/etc/mailcat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis thanks! -- andrew y ng [EMAIL PROTECTED] http://andrewng.com msg19438/pgp0.pgp Description: PGP signature
Re: need some sendmail help
forgot /etc/hosts: ayn@NGBERT:~egrep -v \^# /etc/hosts ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.thelin.com eagan.homeunix.net 192.168.1.100 aynlaptop andrew 192.168.1.102 ngbert ngbert.thelin.com 12.109.66.145 andrewng.com 192.168.1.103 johnbert john I think that ::1 line might've been the problem... /ayn On 0, Andrew Y Ng [EMAIL PROTECTED] wrote: On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? ayn@NGBERT:/etcgrep sendmail rc.conf sendmail_enable=YES - What options have you configured in your /etc/mail/*.mc files? ayn@NGBERT:/etc/mailgrep define *mc|grep -v dnl freebsd.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names') freebsd.mc:define(`confBIND_OPTS', `WorkAroundBroken') freebsd.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128') freebsd.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed') freebsd.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') ngbert.thelin.com.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names') ngbert.thelin.com.mc:define(`confBIND_OPTS', `WorkAroundBroken') ngbert.thelin.com.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128') ngbert.thelin.com.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed') ngbert.thelin.com.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') - What are the contents of /etc/resolv.conf, /etc/host.conf and /etc/hosts files? ayn@NGBERT:/etc/mailcat /etc/resolv.conf search attbi.com nameserver 63.240.76.19 nameserver 204.127.198.19 ayn@NGBERT:/etc/mailcat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis ayn@NGBERT:/etc/mailcat /etc/host.conf # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis thanks! -- andrew y ng [EMAIL PROTECTED] http://andrewng.com -- andrew y ng [EMAIL PROTECTED] http://andrewng.com independent computer consultants http://aynassociates.com msg19439/pgp0.pgp Description: PGP signature
Re: need some sendmail help
On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote: On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? ayn@NGBERT:/etcgrep sendmail rc.conf sendmail_enable=YES This is where the problem lies. You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Look at the description of sendmail_submit_enable in rc.sendmail(8) and in /etc/defaults/rc.conf. - Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: need some sendmail help
On 2003-02-13 20:42, Andrew Y Ng [EMAIL PROTECTED] wrote: forgot /etc/hosts: ayn@NGBERT:~egrep -v \^# /etc/hosts ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.thelin.com eagan.homeunix.net 192.168.1.100 aynlaptop andrew 192.168.1.102 ngbert ngbert.thelin.com 12.109.66.145 andrewng.com 192.168.1.103 johnbert john I think that ::1 line might've been the problem... No, that's fine. It's the loopback address for IPv6. - Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
need some sendmail help
this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. I added localhost and stuff in the access database but still doesn't work... I must be missing something obvious... I tried specifying smart host to be my isp's smtp server but that didn't work either... i got a lot of stuff queued up in the clientmqueue folder... :) any help would be highly appreciated, thank you! -- andrew y ng [EMAIL PROTECTED] http://andrewng.com msg19448/pgp0.pgp Description: PGP signature
Re: need some sendmail help
i got rid of the localhost.my.domain. line in /etc/hosts now i don't get connection refused anymore... i guess it looked at the hosts file and used that name instead of just localhost, and I didn't have that in my access database. now I'm getting a user unknown error... heh.. thanks! /ayn On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote: On 0, Giorgos Keramidas [EMAIL PROTECTED] wrote: On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote: this might seem stupid, but for some reasons on one of my servers running freebsd -stable, mail just doesn't work, I keep seeing: Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by localhost.my.domain. - What sendmail_xxx_enable options have you turned on in /etc/rc.conf? ayn@NGBERT:/etcgrep sendmail rc.conf sendmail_enable=YES This is where the problem lies. You have only enabled mail submission through a network connection to port 25, but not submission of mail from local users. I suggest that you read at least /etc/mail/README and the rc.sendmail(8) manpage. Look at the description of sendmail_submit_enable in rc.sendmail(8) and in /etc/defaults/rc.conf. - Giorgos -- andrew y ng [EMAIL PROTECTED] http://andrewng.com independent computer consultants http://aynassociates.com msg19460/pgp0.pgp Description: PGP signature