Re: Sendmail Configuration
On Mar 1, 2010, at 10:40 AM, Uzair Qadir wrote: Hi, i am new to the freebsd. and i have been trying to configure sendmail so that it would only send mails through a mail server . but i cant seem to get it right. wen i run sendmail. i get the following output. i would like to knw what could be the problem. Set SMART_HOST in /etc/mail/hostname.mc and then run make If you have not run make in /etc/mail yet, do that first. That will create hostname.mc In your case that may end up being domain.pk.mc Add a line like this define(`SMART_HOST', `[172.16.1.1]') using the correct IP address for the mail server. If the mail server has an FQDN use that without the square brackets define(`SMART_HOST', `mail.server.com') Run make That should do it. Dan WARNING: local host name (FreeBSD) is not qualified; see cf/README: WHO AM I? d...@domain.pk... Connecting to [127.0.0.1] via relay... 220 FreeBSD ESMTP Sendmail 8.14.3/8.14.3; Mon, 1 Mar 2010 18:37:13 +0500 (PKT) EHLO FreeBSD 250-FreeBSD Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP MAIL From: SIZE=46 250 2.1.0 ... Sender ok RCPT To: DATA 250 2.1.5 ... Recipient ok 354 Enter mail, end with "." on a line by itself . 250 2.0.0 o21DbDbk008201 Message accepted for delivery d...@domain.pk... Sent (o21DbDbk008201 Message accepted for delivery) Closing connection to [127.0.0.1] QUIT 221 2.0.0 FreeBSD closing connection Regards Uzair Qadir ___ 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" ___ 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: sendmail configuration
You would do better to try the sendmail lists. Rewriting addresses is not a trivial configuration issue. While you have the generics enabled this is effected by the masquerading functions. Most complex sendmail configurations are done through the proper configuration of the cascading rules. Hence why you will get better results with the sendmail lists. -Derek At 04:08 PM 5/14/2006, Jona Joachim wrote: Hi! Sendmail drives me mad. The only thing I want it to do is change the sender's E-Mail address to [EMAIL PROTECTED] and forward everything to smtp.web.de whenever I send mail from the command line. It always sends a DNS query to get the MX records of web.de but the servers designated by the MX records don't accept mail from me as I'm on a DSL line with no static IP address. I even tried to specify the IP address of the mailserver directly so that the words "web.de" don't occur in any configuration file but it still queries for the MX records. When I type: #sendmail [EMAIL PROTECTED] test . sendmail first tries to contact the web.de server that is designated by the MX record. When this server refuses to accept to mail it directly contacts the gmail server. When I receive the mail the sender's address is [EMAIL PROTECTED] although I mapped this address to [EMAIL PROTECTED] in genericstable. I attached /var/log/maillog and a libpcap file (sniffed using ethereal) which describe what happens when I issue the command above. I also attached following configuration files: /etc/mail/nirvana.lan.net.mc /etc/mail/nirvana.lan.submit.mc /etc/mail/genericstable /etc/rc.conf /etc/hosts I created all the .cf and .db files using the Makefile in /etc/mail. I'm sorry to bug you with this, I must be missing something obvious. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. May 14 19:24:52 nirvana sm-mta[11087]: starting daemon (8.13.6): [EMAIL PROTECTED]:30:00 May 14 19:24:52 nirvana sm-msp-queue[11090]: starting daemon (8.13.6): [EMAIL PROTECTED]:30:00 May 14 19:24:52 nirvana sm-mta[11088]: k4BIAfF8000497: to=<[EMAIL PROTECTED]>, delay=2+23:14:09, xdelay=00:00:00, mailer=esmtp, pri=5521614, relay=10.0.0.11. [10.0.0.11], dsn=4.0.0, stat=Deferred: Connection refused by 10.0.0.11. May 14 19:24:54 nirvana sm-mta[11088]: k4AItUc2007774: to=<[EMAIL PROTECTED]>, delay=3+22:29:22, xdelay=00:00:02, mailer=esmtp, pri=5970323, relay=mx-ha02.web.de. [217.72.192.188], dsn=4.0.0, stat=Deferred: Connection reset by mx-ha02.web.de. May 14 19:25:00 nirvana sendmail[11097]: k4EHP0oE011097: from=root, size=256, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] May 14 19:25:00 nirvana sm-mta[11098]: k4EHP0vK011098: from=<[EMAIL PROTECTED]>, size=547, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=Daemon0, relay=localhost.lan.net [127.0.0.1] May 14 19:25:00 nirvana sendmail[11097]: k4EHP0oE011097: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30256, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k4EHP0vK011098 Message accepted for delivery) May 14 19:25:00 nirvana sm-mta[11099]: k4EHP0vK011098: to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30810, relay=local, dsn=2.0.0, stat=Sent May 14 19:25:05 nirvana sendmail[11101]: k4EHP38b011101: from=default, size=5, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED] May 14 19:25:06 nirvana sm-mta[11102]: k4EHP5VZ011102: from=<[EMAIL PROTECTED]>, size=340, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=Daemon0, relay=localhost.lan.net [127.0.0.1] May 14 19:25:06 nirvana sendmail[11101]: k4EHP38b011101: [EMAIL PROTECTED], ctladdr=default (1001/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=30005, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k4EHP5VZ011102 Message accepted for delivery) May 14 19:25:07 nirvana sm-mta[11104]: k4EHP5VZ011102: to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (1001/0), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=30340, relay=gmail-smtp-in.l.google.com. [64.233.183.114], dsn=2.0.0, stat=Sent (OK 1147627507 a23si3294417nfc) check_quotas="NO" font8x16="iso15-8x16.fnt" keymap="swissfrench.iso.acc" sshd_enable="NO" usbd_enable="YES" inetd_enable="NO" ntpdate_enable="YES" sendmail_enable="NO" sendmail_submit_enable="YES" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="YES" linux_enable="YES" compat4x_enable="NO" compat5x_enable="YES" lpd_enable="YES" nessusd_enable="NO" apache22_enable="NO" postgresql_enable="YES" postgresql_data="/var/pgsql" moused_enable="NO" moused_ums0_enable="NO" moused_nondefault_enable="NO" hostname="nirvana.lan.net" ifconfig_sk0="inet 10.0.0.11 netmask 255.0.0.0" defaultrouter="10.0.0.1" 127.0.0.1 localhost.lan.net localhost 10.0.0.11 nir
RE: sendmail configuration
Derek, Thanks for your help. My hosts file does list old IP for my domain name. After I updated it, everything is working for sendmail. I really appreciate everybody's help for the email issue. Ming -Original Message- From: Derek Ragona [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 9:34 AM To: [EMAIL PROTECTED]; 'FreeBSD Questions' Subject: Re: sendmail configuration Your problem is in the name resolution for your domain. Check your hosts file, sendmail typically checks hosts before DNS. -Derek At 04:55 AM 3/20/2006, Ming Tang wrote: Hi - there, I got an email problem. My server can only receive email but cannot send any email out after I changed my server configuration recently from NAT to a D-Link router (DI-624) which supports and passes through all virtual servers to an internal server. I always get the attached error message as soon as I send a mail out from a pop-client, MS Outlook. I think the message was generate by my own email server. I can send out email no problem if I chose from other email servers. My domain name server was configured as follows: Ns1.domain.com is my name server, email server, and web server. domain.com. in A 12.208.99.9 in MX 5 ns1.domain.com. I configured email files 'access' and 'local-host-names' files for sendmail as follows. domainname.com RELAY for access domainname.com for local-host-name And mapped in 'virtusertable' as: @domainname.com [EMAIL PROTECTED] These files were compiled and mail server restarted, but the problem still there. Any one there got any idea or experienced the same problems. Please help. Thanks in advance. Ming Tang -Original Message- From: System Administrator Sent: Monday, March 20, 2006 3:42 AM To: 'eBay' Subject: Undeliverable: eBay Your message did not reach some or all of the intended recipients. Subject: RE: eBay Sent: 3/20/2006 3:42 AM The following recipient(s) could not be reached: 'eBay' on 3/20/2006 3:42 AM 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied. IP name possibly forged [12.208.99.9] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
Please *DON'T top post. On 2006-03-20 07:31, Ming Tang <[EMAIL PROTECTED]> wrote: >Giorgos Keramidas [mailto:[EMAIL PROTECTED] wrote: >>Ming Tang [mailto:[EMAIL PROTECTED] wrote: >>> >>> I got an email problem. My server can only receive email but >>> cannot send any email out after I changed my server configuration >>> recently from NAT to a D-Link router (DI-624) which supports and >>> passes through all virtual servers to an internal server. I always >>> get the attached error message as soon as I send a mail out from a >>> pop-client, MS Outlook. I think the message was generate by my own >>> email server. I can send out email no problem if I chose from >>> other email servers. >>> >>> My domain name server was configured as follows: >>> >>> ns1.n2mt.com is an internal server for name server, email server, >>> and web server. >>> >>> n2mt.com. in A 12.208.70.3 >>> in MX 5 ns1.n2mt.com. >> >> You are not using 'domainname.com' as an internal, local-only domain >> name, right? Because it's already taken and registered by a *real* >> name-server out there... > > Sorry for the confusion. I did not use real domain name in my last message. > I just modified the original message and replaced domainname.com by real > domain name with email problem. Much better. Now we can at least use normal tools like `host', `dig' and others to help you find out more information. >>> I configured email files 'access' and 'local-host-names' files for >>> sendmail (2000 version) as follows. >>> >>> n2mt.comRELAY for access >>> n2mt.comfor local-host-name >>> >>> And mapped in 'virtusertable' as: @n2mt.com [EMAIL PROTECTED] This last part doesn't look very right. You don't have to rewrite local addresses using `virtusertable' if you simply want all of them to be local. Just add both `n2mt.com' and `ns1.n2mt.com' to `local-host-names'. >>> These files were compiled and mail & domain name server restarted, >>> but the problem still remains there. >>> >>> Any one there got any idea or experienced the same >>> problems. Please help. Thanks in advance. >>[error message from some mail server] >>> -Original Message- >>> From: System Administrator >>> Sent: Monday, March 20, 2006 7:01 AM >>> To: 'RAYMOND KOEIMAN' >>> Subject: Undeliverable: Email test >>> >>> Your message did not reach some or all of the intended recipients. >>> >>> Subject: Email test >>> Sent: 3/20/2006 7:00 AM >>> >>> The following recipient(s) could not be reached: >>> >>> 'RAYMOND KOEIMAN' on 3/20/2006 7:01 AM >>> 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied. IP name >>> possibly forged [12.208.70.3] >> >> Is that the *exact* message you got back? If not, please post the exact >> error message you are getting. > > Thanks for the reply. No problem. I still don't know if the above email error message is the _exact_ reply you are getting though :( Hazarding a guess, the message you see above could be related to DNS issues. Your name server thinks its name is `ns1.n2mt.com', but the IP address resolves to a much different name: # [EMAIL PROTECTED] /home/keramida]$ host ns1.n2mt.com. # ns1.n2mt.com has address 12.208.70.3 # [EMAIL PROTECTED] /home/keramida]$ host 12.208.70.3 # 3.70.208.12.in-addr.arpa domain name pointer 12-208-70-3.client.insightbb.com. # [EMAIL PROTECTED] /home/keramida]$ Can you ask your ISP to assign `ns1.n2mt.com.' to your IP address too? - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
Your problem is in the name resolution for your domain. Check your hosts file, sendmail typically checks hosts before DNS. -Derek At 04:55 AM 3/20/2006, Ming Tang wrote: Hi - there, I got an email problem. My server can only receive email but cannot send any email out after I changed my server configuration recently from NAT to a D-Link router (DI-624) which supports and passes through all virtual servers to an internal server. I always get the attached error message as soon as I send a mail out from a pop-client, MS Outlook. I think the message was generate by my own email server. I can send out email no problem if I chose from other email servers. My domain name server was configured as follows: Ns1.domain.com is my name server, email server, and web server. domain.com. in A 12.208.99.9 in MX 5 ns1.domain.com. I configured email files 'access' and 'local-host-names' files for sendmail as follows. domainname.com RELAY for access domainname.com for local-host-name And mapped in 'virtusertable' as: @domainname.com [EMAIL PROTECTED] These files were compiled and mail server restarted, but the problem still there. Any one there got any idea or experienced the same problems. Please help. Thanks in advance. Ming Tang -Original Message- From: System Administrator Sent: Monday, March 20, 2006 3:42 AM To: 'eBay' Subject: Undeliverable: eBay Your message did not reach some or all of the intended recipients. Subject: RE: eBay Sent: 3/20/2006 3:42 AM The following recipient(s) could not be reached: 'eBay' on 3/20/2006 3:42 AM 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied. IP name possibly forged [12.208.99.9] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail configuration
Sorry for the confusion. I did not use real domain name in my last message. I just modified the original message and replaced domainname.com by real domain name with email problem. Thanks for the reply. Ming -Original Message- From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 5:34 AM To: Ming Tang Cc: freebsd-questions@FreeBSD.org Subject: Re: sendmail configuration You are not using 'domainname.com' as an internal, local-only domain name, right? Because it's already taken and registered by a *real* name-server out there... Is that the *exact* message you got back? If not, please post the exact error message you are getting. -Original Message- (Modified for real domain name) From: Ming Tang [mailto:[EMAIL PROTECTED] Sent: Monday, March 20, 2006 4:55 AM To: 'FreeBSD Questions' Subject: sendmail configuration Hi - there, I got an email problem. My server can only receive email but cannot send any email out after I changed my server configuration recently from NAT to a D-Link router (DI-624) which supports and passes through all virtual servers to an internal server. I always get the attached error message as soon as I send a mail out from a pop-client, MS Outlook. I think the message was generate by my own email server. I can send out email no problem if I chose from other email servers. My domain name server was configured as follows: ns1.n2mt.com is an internal server for name server, email server, and web server. n2mt.com. in A 12.208.70.3 in MX 5 ns1.n2mt.com. I configured email files 'access' and 'local-host-names' files for sendmail (2000 version) as follows. n2mt.comRELAY for access n2mt.comfor local-host-name And mapped in 'virtusertable' as: @n2mt.com [EMAIL PROTECTED] These files were compiled and mail & domain name server restarted, but the problem still remains there. Any one there got any idea or experienced the same problems. Please help. Thanks in advance. Ming Tang -Original Message- From: System Administrator Sent: Monday, March 20, 2006 7:01 AM To: 'RAYMOND KOEIMAN' Subject: Undeliverable: Email test Your message did not reach some or all of the intended recipients. Subject: Email test Sent: 3/20/2006 7:00 AM The following recipient(s) could not be reached: 'RAYMOND KOEIMAN' on 3/20/2006 7:01 AM 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied. IP name possibly forged [12.208.70.3] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On 2006-03-20 04:55, Ming Tang <[EMAIL PROTECTED]> wrote: > Hi - there, > > I got an email problem. My server can only receive email but cannot send any > email out after I changed my server configuration recently from NAT to a > D-Link router (DI-624) which supports and passes through all virtual servers > to an internal server. I always get the attached error message as soon as I > send a mail out from a pop-client, MS Outlook. I think the message was > generate by my own email server. I can send out email no problem if I chose > from other email servers. > > My domain name server was configured as follows: > > Ns1.domain.com is my name server, email server, and web server. > > domain.com. in A 12.208.99.9 > in MX 5 ns1.domain.com. You are not using 'domain.com' as an internal, local-only domain name, right? Because it's already taken and registered by a *real* name-server out there... # [EMAIL PROTECTED] /home/keramida]$ dig domain.com. soa # # ; <<>> DiG 9.3.2 <<>> domain.com. soa # ;; global options: printcmd # ;; Got answer: # ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31362 # ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2 # # ;; QUESTION SECTION: # ;domain.com.IN SOA # # ;; ANSWER SECTION: # domain.com. 3600IN SOA ns1.dotsterhost.com. \ # sysadmin.domainbank.com. 1142827739 14400 2 360 3600 # # ;; AUTHORITY SECTION: # domain.com. 23 IN NS ns2.dotsterhost.com. # domain.com. 23 IN NS ns3.dotsterhost.com. # domain.com. 23 IN NS ns1.dotsterhost.com. # # ;; ADDITIONAL SECTION: # ns1.dotsterhost.com.170776 IN A 72.5.54.12 # ns3.dotsterhost.com.163693 IN A 64.94.31.85 # # ;; Query time: 51 msec # ;; SERVER: 127.0.0.1#53(127.0.0.1) # ;; WHEN: Mon Mar 20 03:32:14 2006 # ;; MSG SIZE rcvd: 182 # # [EMAIL PROTECTED] /home/keramida]$ > I configured email files 'access' and 'local-host-names' files for sendmail > as follows. > > domainname.comRELAY for access > domainname.comfor local-host-name > > And mapped in 'virtusertable' as: @domainname.com [EMAIL PROTECTED] > > These files were compiled and mail server restarted, but the problem still > there. > > Any one there got any idea or experienced the same problems. Please help. > -Original Message- > From: System Administrator > Sent: Monday, March 20, 2006 3:42 AM > To: 'eBay' > Subject: Undeliverable: eBay > > Your message did not reach some or all of the intended recipients. > > Subject:RE: eBay > Sent: 3/20/2006 3:42 AM > > The following recipient(s) could not be reached: > > 'eBay' on 3/20/2006 3:42 AM > > 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied. IP name possibly forged > [12.208.99.9] Is that the *exact* message you got back? If not, please post the exact error message you are getting. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On 8/5/03 9:32 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: > On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: >> On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: >>> I am adding a dynamic dns host to my server and need want to add to >>> these options to sendmail >>> >>> >>> MASQUERADE_AS(`neighborsunited.net')dnl >>> FEATURE(masquerade_envelope)dnl >>> >>> Is this done with freebsd.submit.mc or freebsd.mc? >> >> It should be done to your local copy of the freebsd.mc file, ie: >> >> # cd /etc/mail >> # cp freebsd.mc `hostname`.mc >> # vi `hostname`.mc >> # make >> # make install >> # sh /etc/rc.sendmail restart > > I did all that, but sendmail does not seem to be sending out mail. Is > there anything that needs to be done to make sure that 'hostname.mc' > gets activated? Should the 'make' and 'make install' commands take > 'hostname.mc' as an agrument? > > I just seems like I have all these .mc files in /etc/mail, do they all > get made and installed with 'make intall'? >> >> Cheers. Try "make install-cf CF=hostname" Mike -- Michael K. Smith NoaNet 206.219.7116 (work) 206.579.8360 (cell) [EMAIL PROTECTED]http://www.noanet.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, 2003-08-05 at 19:43, Chuck Swiger wrote: > Kirk R. Wythers wrote: > [ ... ] > > OK... not space between the install and -cf 'make install-cf > > CF=neighborsunited' > > > > gives the message > > > > [EMAIL PROTECTED]:133 make install-cf CF=neighborsunited.net > > install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf > > That's right. Now do a "make restart". Did it > > > How can I tell (other than new lists created with mailman still do not > > send messages), if this worked. Me thinks it is still broken... > > Try: > > echo "3,0 [EMAIL PROTECTED]" | sendmail -bt > > ...and see whether it gets rewritten to "neighborsunited.net". [EMAIL PROTECTED]:165 echo "3,0 [EMAIL PROTECTED]" | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > canonify input: postmaster @ lorax . forestry . umn . edu Canonify2 input: postmaster < @ lorax . forestry . umn . edu > Canonify2returns: postmaster < @ x74-47 . forestry . umn . edu . > canonify returns: postmaster < @ x74-47 . forestry . umn . edu . > parse input: postmaster < @ x74-47 . forestry . umn . edu . > Parse0 input: postmaster < @ x74-47 . forestry . umn . edu . > Parse0 returns: postmaster < @ x74-47 . forestry . umn . edu . > ParseLocal input: postmaster < @ x74-47 . forestry . umn . edu . > ParseLocal returns: postmaster < @ x74-47 . forestry . umn . edu . > Parse1 input: postmaster < @ x74-47 . forestry . umn . edu . > Parse1 returns: $# local $: postmaster parsereturns: $# local $: postmaster Nope... seems to still be writing to the uname of the machine > > > shouldn't there be some reference to: > > > > MASQUERADE_AS(`neighborsunited.org')dnl FEATURE(masquerade_envelope)dnl > > > > in sendmail.cf? > > Yes, you should see a like like: > > # $Id: masquerade_envelope.m4,v 8.9 1999/02/07 07:26:10 gshapiro Exp $ ### > ## > > ...near the beginning of the .cf file, and lines like: > > # who I masquerade as (null for no masquerading) (see also $=M) > DMneighborsunited.net I'm not seeing anything like that... [EMAIL PROTECTED]:169 grep masquerade *.cf freebsd.cf:# class E: names that should be exposed as from this host, even if we masquerade freebsd.cf:### Ruleset 93 -- convert header names to masqueraded form ### freebsd.cf:# do not masquerade anything in class N freebsd.cf:### Ruleset 94 -- convert envelope names to masqueraded form ### freebsd.submit.cf:# class E: names that should be exposed as from this host, even if we masquerade freebsd.submit.cf:### Ruleset 93 -- convert header names to masqueraded form ### freebsd.submit.cf:# do not masquerade anything in class N freebsd.submit.cf:### Ruleset 94 -- convert envelope names to masqueraded form### lorax.forestry.umn.edu.cf:# class E: names that should be exposed as from this host, even if we masquerade lorax.forestry.umn.edu.cf:### Ruleset 93 -- convert header names to masqueraded form ### lorax.forestry.umn.edu.cf:# do not masquerade anything in class N lorax.forestry.umn.edu.cf:### Ruleset 94 -- convert envelope names to masqueraded form ### sendmail.cf:# class E: names that should be exposed as from this host, even if we masquerade sendmail.cf:### Ruleset 93 -- convert header names to masqueraded form ### sendmail.cf:# do not masquerade anything in class N sendmail.cf:### Ruleset 94 -- convert envelope names to masqueraded form ### submit.cf:# class E: names that should be exposed as from this host, even if we masquerade submit.cf:### Ruleset 93 -- convert header names to masqueraded form ### submit.cf:# do not masquerade anything in class N submit.cf:### Ruleset 94 -- convert envelope names to masqueraded form ### [EMAIL PROTECTED]:170 To recap, here is what I tried from /et/mail: 1. cp freebsd.mc neighborsunited.net.mc 2. emacs neighborsunited.net.mc and added the lines: MASQUERADE_AS(`neighborsunited.net')dnl FEATURE(masquerade_envelope)dnl above the lines: MAILER(local) MAILER(smtp) 3. make 4. make install-cf CF=neighborsunited.net 5. make restart what am I messing up here? THanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, 2003-08-05 at 20:32, Jonathan Chen wrote: > > It is *NOT* 'hostname.mc'. It is `hostname`.mc (note the back-tick). > `hostname`.mc should expand to host.name.of.machine.mc. So are you saying that that I should type litterally: cp freebsd.mc `hostname`.mc (I had used neighborsunited.net.mc) and then in my favorite editor, add the lines: MASQUERADE_AS(`neighborsunited.net')dnl FEATURE(masquerade_envelope)dnl then litterally: make make install-cf CF=neighborsunited.net sh /etc/rc.sendmail restart -- Kirk R. Wythers Department of Forest Resources Tel: 612.625.2261 University of Minnesota Fax: 612.625.5211530 Cleveland Ave. N Email: [EMAIL PROTECTED]Saint Paul, MN 55108 USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, Aug 05, 2003 at 08:45:49PM +, Kirk R. Wythers wrote: > On Tue, 2003-08-05 at 20:32, Jonathan Chen wrote: > > > > > It is *NOT* 'hostname.mc'. It is `hostname`.mc (note the back-tick). > > `hostname`.mc should expand to host.name.of.machine.mc. > > So are you saying that that I should type litterally: > > cp freebsd.mc `hostname`.mc (I had used neighborsunited.net.mc) Yes. And then you should edit the host.name.of.machine.mc file, eg # vi `hostname`.mc > and then in my favorite editor, add the lines: > > MASQUERADE_AS(`neighborsunited.net')dnl > FEATURE(masquerade_envelope)dnl > > then litterally: > make > make install-cf CF=neighborsunited.net > sh /etc/rc.sendmail restart I would use: # make # make install # sh /etc/rc.sendmail restart The CF= stuff is for really odd tweaks. Cheers. -- Jonathan Chen <[EMAIL PROTECTED]> -- Vini, vidi, velcro... I came, I saw, I stuck around ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
thanks everyone, was Re: sendmail configuration
Looks like send mail is sending mail out to the virtual host (neighborsunited.net) now: [EMAIL PROTECTED]:189 echo "3,0 [EMAIL PROTECTED]" | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > canonify input: postmaster @ neighborsunited . net Canonify2 input: postmaster < @ neighborsunited . net > Mailman is not sending messages, but it looks like /var is full (which would cause problems) Aug 6 09:35:18 lorax sm-mta[27137]: h76EZIpZ086955: low on space (SMTP-DAEMON n eeds 0 bytes + 100 blocks in /var/spool/mqueue), max avail: 0 Aug 6 09:35:18 lorax sm-mta[27137]: rejecting new messages: min free: 100 [EMAIL PROTECTED]:204 df Filesystem 1K-blocksUsed Avail Capacity Mounted on /dev/da0s1a128814 69388 4912259%/ devfs 1 1 0 100%/dev /dev/da0s1e 7322350 2631730 410483239%/home /dev/da1s1d 7709614 6373536 71931090%/usr /dev/da0s1d257838 237312-100 100%/var So I'm off to try and figure out where I can clear some space off in /var Thanks everyone... > > > > So are you saying that that I should type litterally: > > > > cp freebsd.mc `hostname`.mc (I had used neighborsunited.net.mc) > > Yes. And then you should edit the host.name.of.machine.mc file, eg > > # vi `hostname`.mc > > > and then in my favorite editor, add the lines: > > > > MASQUERADE_AS(`neighborsunited.net')dnl > > FEATURE(masquerade_envelope)dnl > > > > then litterally: > > > make > > make install-cf CF=neighborsunited.net > > sh /etc/rc.sendmail restart > > I would use: > > # make > # make install > # sh /etc/rc.sendmail restart > > The CF= stuff is for really odd tweaks. > > Cheers. -- Kirk R. Wythers Department of Forest Resources Tel: 612.625.2261 University of Minnesota Fax: 612.625.5211530 Cleveland Ave. N Email: [EMAIL PROTECTED]Saint Paul, MN 55108 USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, 2003-08-05 at 20:14, Chuck Swiger wrote: > Hi, Kirk-- > > Kirk R. Wythers wrote: > [ ... ] > > 1. cp freebsd.mc neighborsunited.net.mc > > 2. emacs neighborsunited.net.mc and added the lines: > > > > MASQUERADE_AS(`neighborsunited.net')dnl > > FEATURE(masquerade_envelope)dnl > > above the lines: > > MAILER(local) > > MAILER(smtp) > > 3. make > > 4. make install-cf CF=neighborsunited.net > > 5. make restart > > > > what am I messing up here? > > Try using the following as your neighborsunited.net.mc file: > > VERSIONID(`$FreeBSD: testing $') > OSTYPE(freebsd4) > DOMAIN(generic) > > FEATURE(access_db, `hash -o -T /etc/mail/access') > FEATURE(blacklist_recipients) > FEATURE(local_lmtp) > FEATURE(mailertable, `hash -o /etc/mail/mailertable') > FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') > FEATURE(masquerade_envelope)dnl > MASQUERADE_AS(`neighborsunited.net')dnl > > define(`confBIND_OPTS', `WorkAroundBroken') > define(`confNO_RCPT_ACTION', `add-to-undisclosed') > define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') > MAILER(local) > MAILER(smtp) > > ...and retry creating the .cf file by: > > make install-cf SENDMAIL_MC=neighborsunitied.net.mc > > ...and see whether that does any better. I replaced neighborsunited.net.mc with what you suggested (I left the reference to freebsd4, even though I'm running 5) but the ech command gives the same result: [EMAIL PROTECTED]:177 echo "3,0 [EMAIL PROTECTED]" | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter > canonify input: postmaster @ lorax . forestry . umn . edu Canonify2 input: postmaster < @ lorax . forestry . umn . edu > Canonify2returns: postmaster < @ x74-47 . forestry . umn . edu . > canonify returns: postmaster < @ x74-47 . forestry . umn . edu . > parse input: postmaster < @ x74-47 . forestry . umn . edu . > Parse0 input: postmaster < @ x74-47 . forestry . umn . edu . > Parse0 returns: postmaster < @ x74-47 . forestry . umn . edu . > ParseLocal input: postmaster < @ x74-47 . forestry . umn . edu . > ParseLocal returns: postmaster < @ x74-47 . forestry . umn . edu . > Parse1 input: postmaster < @ x74-47 . forestry . umn . edu . > Parse1 returns: $# local $: postmaster parsereturns: $# local $: postmaster sendmail appears to still be sending to x74-47.forestry.umn.edu -- Kirk R. Wythers Department of Forest Resources Tel: 612.625.2261 University of Minnesota Fax: 612.625.5211530 Cleveland Ave. N Email: [EMAIL PROTECTED]Saint Paul, MN 55108 USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
Hi, Kirk-- Kirk R. Wythers wrote: [ ... ] 1. cp freebsd.mc neighborsunited.net.mc 2. emacs neighborsunited.net.mc and added the lines: MASQUERADE_AS(`neighborsunited.net')dnl FEATURE(masquerade_envelope)dnl above the lines: MAILER(local) MAILER(smtp) 3. make 4. make install-cf CF=neighborsunited.net 5. make restart what am I messing up here? Try using the following as your neighborsunited.net.mc file: VERSIONID(`$FreeBSD: testing $') OSTYPE(freebsd4) DOMAIN(generic) FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') FEATURE(masquerade_envelope)dnl MASQUERADE_AS(`neighborsunited.net')dnl define(`confBIND_OPTS', `WorkAroundBroken') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) ...and retry creating the .cf file by: make install-cf SENDMAIL_MC=neighborsunitied.net.mc ...and see whether that does any better. -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
Kirk R. Wythers wrote: [ ... ] OK... not space between the install and -cf 'make install-cf CF=neighborsunited' gives the message [EMAIL PROTECTED]:133 make install-cf CF=neighborsunited.net install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf That's right. Now do a "make restart". How can I tell (other than new lists created with mailman still do not send messages), if this worked. Me thinks it is still broken... Try: echo "3,0 [EMAIL PROTECTED]" | sendmail -bt ...and see whether it gets rewritten to "neighborsunited.net". shouldn't there be some reference to: MASQUERADE_AS(`neighborsunited.org')dnl FEATURE(masquerade_envelope)dnl in sendmail.cf? Yes, you should see a like like: # $Id: masquerade_envelope.m4,v 8.9 1999/02/07 07:26:10 gshapiro Exp $ ### ## ...near the beginning of the .cf file, and lines like: # who I masquerade as (null for no masquerading) (see also $=M) DMneighborsunited.net -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On 8/5/03 11:40 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: > On Tue, 2003-08-05 at 16:51, Michael K. Smith wrote: >> On 8/5/03 9:32 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: >> >>> On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: > I am adding a dynamic dns host to my server and need want to add to > these options to sendmail > > > MASQUERADE_AS(`neighborsunited.net')dnl > FEATURE(masquerade_envelope)dnl > > Is this done with freebsd.submit.mc or freebsd.mc? It should be done to your local copy of the freebsd.mc file, ie: # cd /etc/mail # cp freebsd.mc `hostname`.mc # vi `hostname`.mc # make # make install # sh /etc/rc.sendmail restart >>> >>> I did all that, but sendmail does not seem to be sending out mail. Is >>> there anything that needs to be done to make sure that 'hostname.mc' >>> gets activated? Should the 'make' and 'make install' commands take >>> 'hostname.mc' as an agrument? >>> >>> I just seems like I have all these .mc files in /etc/mail, do they all >>> get made and installed with 'make intall'? Cheers. >> >> Try "make install-cf CF=hostname" > > That yield the message: > > [EMAIL PROTECTED]:103 make install -cf CF=nieghborsunited.net > make: illegal option -- c > usage: make [-Beiknqrstv] [-D variable] [-d flags] [-E variable] [-f > makefile] > [-I directory] [-j max_jobs] [-m directory] [-V variable] > [variable=value] [target ...] > [EMAIL PROTECTED]:104 make install-cf CF=nieghborsunited.net > install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf > > The domain that I want to be configured into sendmail.cf is > neighborsunited.net. Why does the install message refer to > lorax.forestry.umn.edu? > No space between install and "-cf" So, it's make install-cf CF=neighborsunited.net Mike -- Michael K. Smith NoaNet 206.219.7116 (work) 206.579.8360 (cell) [EMAIL PROTECTED]http://www.noanet.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, 2003-08-05 at 16:51, Michael K. Smith wrote: > On 8/5/03 9:32 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: > > > On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: > >> On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: > >>> I am adding a dynamic dns host to my server and need want to add to > >>> these options to sendmail > >>> > >>> > >>> MASQUERADE_AS(`neighborsunited.net')dnl > >>> FEATURE(masquerade_envelope)dnl > >>> > >>> Is this done with freebsd.submit.mc or freebsd.mc? > >> > >> It should be done to your local copy of the freebsd.mc file, ie: > >> > >> # cd /etc/mail > >> # cp freebsd.mc `hostname`.mc > >> # vi `hostname`.mc > >> # make > >> # make install > >> # sh /etc/rc.sendmail restart > > > > I did all that, but sendmail does not seem to be sending out mail. Is > > there anything that needs to be done to make sure that 'hostname.mc' > > gets activated? Should the 'make' and 'make install' commands take > > 'hostname.mc' as an agrument? > > > > I just seems like I have all these .mc files in /etc/mail, do they all > > get made and installed with 'make intall'? > >> > >> Cheers. > > Try "make install-cf CF=hostname" That yield the message: [EMAIL PROTECTED]:103 make install -cf CF=nieghborsunited.net make: illegal option -- c usage: make [-Beiknqrstv] [-D variable] [-d flags] [-E variable] [-f makefile] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] [EMAIL PROTECTED]:104 make install-cf CF=nieghborsunited.net install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf The domain that I want to be configured into sendmail.cf is neighborsunited.net. Why does the install message refer to lorax.forestry.umn.edu? Kirk > > Mike ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: > On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: > > I am adding a dynamic dns host to my server and need want to add to > > these options to sendmail > > > > > > MASQUERADE_AS(`neighborsunited.net')dnl > > FEATURE(masquerade_envelope)dnl > > > > Is this done with freebsd.submit.mc or freebsd.mc? > > It should be done to your local copy of the freebsd.mc file, ie: > > # cd /etc/mail > # cp freebsd.mc `hostname`.mc > # vi `hostname`.mc > # make > # make install > # sh /etc/rc.sendmail restart I did all that, but sendmail does not seem to be sending out mail. Is there anything that needs to be done to make sure that 'hostname.mc' gets activated? Should the 'make' and 'make install' commands take 'hostname.mc' as an agrument? I just seems like I have all these .mc files in /etc/mail, do they all get made and installed with 'make intall'? > > Cheers. -- Kirk R. Wythers Department of Forest Resources Tel: 612.625.2261 University of Minnesota Fax: 612.625.5211530 Cleveland Ave. N Email: [EMAIL PROTECTED]Saint Paul, MN 55108 USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, Aug 05, 2003 at 11:32:27AM -0500, Kirk R. Wythers wrote: > On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: [...] > > > > # cd /etc/mail > > # cp freebsd.mc `hostname`.mc > > # vi `hostname`.mc > > # make > > # make install > > # sh /etc/rc.sendmail restart > > I did all that, but sendmail does not seem to be sending out mail. Is > there anything that needs to be done to make sure that 'hostname.mc' > gets activated? Should the 'make' and 'make install' commands take > 'hostname.mc' as an agrument? It is *NOT* 'hostname.mc'. It is `hostname`.mc (note the back-tick). `hostname`.mc should expand to host.name.of.machine.mc. -- Jonathan Chen <[EMAIL PROTECTED]>Once is dumb luck. Twice is coincidence. Three times and Somebody Is Trying To Tell You Something. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Tue, 2003-08-05 at 18:41, Michael K. Smith wrote: > On 8/5/03 11:40 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: > > > On Tue, 2003-08-05 at 16:51, Michael K. Smith wrote: > >> On 8/5/03 9:32 AM, "Kirk R. Wythers" <[EMAIL PROTECTED]> wrote: > >> > >>> On Mon, 2003-08-04 at 15:40, Jonathan Chen wrote: > On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: > > I am adding a dynamic dns host to my server and need want to add to > > these options to sendmail > > > > > > MASQUERADE_AS(`neighborsunited.net')dnl > > FEATURE(masquerade_envelope)dnl > > > > Is this done with freebsd.submit.mc or freebsd.mc? > > It should be done to your local copy of the freebsd.mc file, ie: > > # cd /etc/mail > # cp freebsd.mc `hostname`.mc > # vi `hostname`.mc > # make > # make install > # sh /etc/rc.sendmail restart > >>> > >>> I did all that, but sendmail does not seem to be sending out mail. Is > >>> there anything that needs to be done to make sure that 'hostname.mc' > >>> gets activated? Should the 'make' and 'make install' commands take > >>> 'hostname.mc' as an agrument? > >>> > >>> I just seems like I have all these .mc files in /etc/mail, do they all > >>> get made and installed with 'make intall'? > > Cheers. > >> > >> Try "make install-cf CF=hostname" > > > > That yield the message: > > > > [EMAIL PROTECTED]:103 make install -cf CF=nieghborsunited.net > > make: illegal option -- c > > usage: make [-Beiknqrstv] [-D variable] [-d flags] [-E variable] [-f > > makefile] > > [-I directory] [-j max_jobs] [-m directory] [-V variable] > > [variable=value] [target ...] > > [EMAIL PROTECTED]:104 make install-cf CF=nieghborsunited.net > > install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf > > > > The domain that I want to be configured into sendmail.cf is > > neighborsunited.net. Why does the install message refer to > > lorax.forestry.umn.edu? > > > > No space between install and "-cf" So, it's make install-cf > CF=neighborsunited.net OK... not space between the install and -cf 'make install-cf CF=neighborsunited' gives the message [EMAIL PROTECTED]:133 make install-cf CF=neighborsunited.net install -m 444 lorax.forestry.umn.edu.cf /etc/mail/sendmail.cf How can I tell (other than new lists created with mailman still do not send messages), if this worked. Me thinks it is still broken... shouldn't there be some reference to: MASQUERADE_AS(`neighborsunited.org')dnl FEATURE(masquerade_envelope)dnl in sendmail.cf? > > Mike -- Kirk R. Wythers Department of Forest Resources Tel: 612.625.2261 University of Minnesota Fax: 612.625.5211530 Cleveland Ave. N Email: [EMAIL PROTECTED]Saint Paul, MN 55108 USA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
Hello, Are you using the default sendmail included with your copy of FreeBSD or have you installed a http://www.sendmail.org/ source/binary? If so (sendmail.org) you may want to return to the installation directory/cf/cf and attend your changes to the file sendmail.mc there and rerun the make install-cf command. If not you should be fine with the solutions provided by others. R. On 4 Aug 2003, Kirk R. Wythers wrote: > I am adding a dynamic dns host to my server and need want to add to > these options to sendmail > > > MASQUERADE_AS(`neighborsunited.net')dnl > FEATURE(masquerade_envelope)dnl > > Is this done with freebsd.submit.mc or freebsd.mc? > > Thanks, > > Kirk > > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration
On Mon, Aug 04, 2003 at 03:00:38PM -0500, Kirk R. Wythers wrote: > I am adding a dynamic dns host to my server and need want to add to > these options to sendmail > > > MASQUERADE_AS(`neighborsunited.net')dnl > FEATURE(masquerade_envelope)dnl > > Is this done with freebsd.submit.mc or freebsd.mc? It should be done to your local copy of the freebsd.mc file, ie: # cd /etc/mail # cp freebsd.mc `hostname`.mc # vi `hostname`.mc # make # make install # sh /etc/rc.sendmail restart Cheers. -- Jonathan Chen <[EMAIL PROTECTED]> -- "You can get farther with a kind word and a gun than you can with a kind word alone" - Al Capone ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail configuration - how to route all mail through my ISP
+++ Lorin Lund [freebsd] [26-01-03 10:37 -0700]: | Date: Sun, 26 Jan 2003 10:37:13 -0700 | From: Lorin Lund <[EMAIL PROTECTED]> | Subject: sendmail configuration - how to route all mail through my ISP | | I have v 4.7 of FreeBSD. | | I have a static IP and a domain but I can't send e-mail out directly | because my ISP blocks it. I need to send all my e-mail out through my | ISP. How do I tell sendmail to route all my mail out through my ISP's | mail server? | | -- plz. search the mailing archive. this ques. is discuss quite freq. Regards, Shantanu -- Everyone is a genius. It's just that some people are too stupid to realize it. PGP keyID 137AFD9E (C7DA 3350 1DEA F371 37DC D92A F0D4 C2ED 137A FD9E) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
On 25 Jan Chris Phillips wrote: > From: "dick hoogendijk" <[EMAIL PROTECTED]> > > However, I don't get how your ISP can block *outgoing* connects of > > your sendmail. Some isp's block incoming connects on 25. > *** FYI *** > FreeServe, Energis & Demon are doing just this. > I am informed that this kind of action is due to AOL getting uppety > with Demon & forcing them to restrict their network simliarly, due to > AOL customers being SPAMMED by mail that appears to originate from > Demon Networks... > > BT is doing similar to their dynamic IP customers... > > Thought this might interest a few of you ;-) Doesn't sound good. It sucks. Thought things were bad in Holland, but here some isp's only block incoming #25 (and that is easely beaten ;-)) And even that give quite a stirr.. and very few therefor do so. -- dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
- Original Message - From: "dick hoogendijk" <[EMAIL PROTECTED]> To: "Lorin Lund" <[EMAIL PROTECTED]> Cc: "freebsd-questions" <[EMAIL PROTECTED]> Sent: Saturday, January 25, 2003 9:32 PM Subject: Re: sendmail configuration - how to route all mail through my ISP > On 26 Jan Lorin Lund wrote: > > I have a static IP and a domain but I can't send e-mail out directly > > because my ISP blocks it. I need to send all my e-mail out through my > > ISP. How do I tell sendmail to route all my mail out through my ISP's > > mail server? > > The smarthost option does what you ask for. *** > However, I don't get how your ISP can block *outgoing* connects of your > sendmail. Some isp's block incoming connects on 25. *** *** FYI *** FreeServe, Energis & Demon are doing just this. I work in a company who supports a FreeBSD based Internet Appliance & during the last fortnight, we have had to change the way a lot of our customers send their email. Previously being able to send through our servers (to have the emails virus-scanned). FreeServe made a policy decision, to block ALL port 25 traffic accross their network. I believe their hand was forced by Energis, but it would have been a good idea to mention it to their customers! Dial-up accounts are blocked from port 25 unless the destination is their own SMTP server, (it has been made to look as if the other servers are refusing connections. ADSL accounts have the port 25 requests "forwarded" to the FreeServe SMPT server which is most disconcerting when trying to diagnose! I am informed that this kind of action is due to AOL getting uppety with Demon & forcing them to restrict their network simliarly, due to AOL customers being SPAMMED by mail that appears to originate from Demon Networks... BT is doing similar to their dynamic IP customers... Thought this might interest a few of you ;-) Chris xx intY has scanned this email for all known viruses (www.inty.com) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
- Original Message - From: "dick hoogendijk" <[EMAIL PROTECTED]> To: "Lorin Lund" <[EMAIL PROTECTED]> Cc: "freebsd-questions" <[EMAIL PROTECTED]> Sent: Saturday, January 25, 2003 10:32 PM Subject: Re: sendmail configuration - how to route all mail through my ISP > On 26 Jan Lorin Lund wrote: > > I have a static IP and a domain but I can't send e-mail out > > directly because my ISP blocks it. I need to send all my e-mail out > > through my ISP. How do I tell sendmail to route all my mail out through > > my ISP's mail server? > > The smarthost option does what you ask for. > However, I don't get how your ISP can block *outgoing* connects > of your sendmail. Some isp's block incoming connects on 25. What he means is, that his ISP blocks all connects to port 25 which are not directed at their SMTP server. Fairly common practice, these days. Hence, he cannot send mail out using his own SMTP server. Many of my users had the same problem: their ISP would not allow them to connect to my SMTP server. That was easily solved, as I simply opened a second DaemonPort (sendmail), and offered my users to connect to that alternate port (in the high 7000+ region). That would allow THEM to bypass their ISP restriction. My server, of course, still sends out via port 25. So, setting his smarthost would indeed solve the problem, as his ISP will allow him to send through their own SMTP server. - Mark System Administrator Asarian-host.org --- "If you were supposed to understand it, we wouldn't call it code." - FedEx To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
On 26 Jan Lorin Lund wrote: > I have a static IP and a domain but I can't send e-mail out directly > because my ISP blocks it. I need to send all my e-mail out through my > ISP. How do I tell sendmail to route all my mail out through my ISP's > mail server? The smarthost option does what you ask for. However, I don't get how your ISP can block *outgoing* connects of your sendmail. Some isp's block incoming connects on 25. -- dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.7 ++ Debian GNU/Linux (Woody) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
Chuck Swiger <[EMAIL PROTECTED]> writes: > Lorin Lund wrote: > > I have a static IP and a domain but I can't send e-mail out directly > > because my ISP blocks it. I need to send all my e-mail out through my > > ISP. How do I tell sendmail to route all my mail out through my ISP's > > mail server? > > 1) cd /etc/mail > 2) edit freebsd.mc and change the following: > > dnl Dialup users should uncomment and define this appropriately > dnl define(`SMART_HOST', `your.isp.mail.server') > > 3) make > 4) restart sendmail And, in FreeBSD 5.0 with no local DNS running, change in submit.mc this: FEATURE(`msp') to this: FEATURE(`msp',`[127.0.0.1]') to avoid long DNS time-out delays. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: sendmail configuration - how to route all mail through my ISP
# [EMAIL PROTECTED] / 2003-01-25 12:51:11 -0500: > Lorin Lund wrote: > >I have a static IP and a domain but I can't send e-mail out directly > >because my ISP blocks it. I need to send all my e-mail out through my > >ISP. How do I tell sendmail to route all my mail out through my ISP's > >mail server? > > 1) cd /etc/mail > 2) edit freebsd.mc and change the following: > > dnl Dialup users should uncomment and define this appropriately > dnl define(`SMART_HOST', `your.isp.mail.server') > > 3) make > 4) restart sendmail 3 + 4: make cf restart -- 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: sendmail configuration - how to route all mail through my ISP
Lorin Lund wrote: I have a static IP and a domain but I can't send e-mail out directly because my ISP blocks it. I need to send all my e-mail out through my ISP. How do I tell sendmail to route all my mail out through my ISP's mail server? 1) cd /etc/mail 2) edit freebsd.mc and change the following: dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') 3) make 4) restart sendmail -Chuck To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Sendmail Configuration...
Today Christopher J Phillips wrote: > Hi, > > I have some FreeBSD boxes that I'd like to configure sendmail on. > > I have no experience I'm afraid. > > I have a mail server that is all set up as I'd like it, see www.inty.net > > I would like the FreeBSD boxes to send/forward mail out to that host via > SMTP, I am proficient at configuring that (intY) box to allow such > connections. > > For instance, stuff for root & sometimes I like to pipe a commands > output through mail to an address, so I can look at the results remotely > or send info to friends etc... > > Currently, the FreeBSD boxes are unfettered & sendmail just dumps mail > to root as undeliverable. I have (I think), pointed all root mail @ my > personal email address but as sendmail knows of no SMTP forwarder & my > email domain does not correspond to that of the other boxes (which > appear as sub-domains of my primary domain), ALL but root mail is > undeliverable :-( > > Please could you give me an idea of what I should be configuring & > possibly recommending a URL that would let me learn how to do this? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ http://www.sendmail.org/m4/readme.html news://comp.mail.sendmail -andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Sendmail configuration question
On Sep 19 at 08:46, stan spoke: > I find myself in a position where I need to set up sendmail in the following > fashion. I need it to deliver all (except machine local email) to a > smarthost. Now this _should_ be straightforward, except that at the moment I > can only access the machine by IP address, since the DNS server for our Have you tried DS[ip.of.smarthost]? > part of the merged company still does not have entries for the merged > domain name. Have you tried putting the hostnames in /etc/hosts? Maybe you can configure local DNS with two domains, one which is the hostname of your client and one which is the hostname of the smarthost. (Something like client.company1.com and smarthost.company2.com.) The domains probably need A and NS records. Then make the local DNS the first one in resolv.conf. -Hanspeter To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message