Re: Smail/Sendmail Question
Hi! mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses I wrote such m4s. I don't think they're perfect, but they work !-) I offer to share em. shall I send em to the list? Well, I think it could be worth for the whole list, but if others object, I'd like to take a look at them (privately :)) -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]
Re: Smail/Sendmail Question
mfrattola Thank you for your answer. It seems to me (from other mfrattola messages) that smail is easier to manage WRT this problem mfrattola (with routers, directors and the like). Problem is I don't mfrattola like smail (and recent problems with newer smail don't make mfrattola me like it more). What I'd like sendmail to do is: mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses The ppp vs eth0 should be handled by the networking setup, and should not be a part of the MTA's chores. This is easy if you grok sendmail.cf, like some of us oldtimers. Unfortunately, sendmail.cf mastery is a dying art. Oh, when it is written, it can be encapsulated into a m4 hack, so everyone else can just use that. manoj who still remembers evenings spent crafting version 5 sendmail.cf's with a host of cohorts so the bottom line is: I have to buy the sendmail book :) -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED]
Re: Smail/Sendmail Question
Hi! mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses I wrote such m4s and Marco asked me to post em to the list. I hope nobody is angry because of their size (6k gz) in addition they are capable of rewriting usernames restrict internet-mail to listed users. deliver mail to non-local adresses which are known to be reachable localy They aren't perfect, but they work. At least they are a good start to continue tweaking. Regards Rainer --- KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB 78 1D B5 64 E0 BF 72 EB sm_hack.tar.gz Description: GNU Zip compressed data
Re: Smail/Sendmail Question
Hi! mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses I wrote such m4s. I don't think they're perfect, but they work !-) I offer to share em. shall I send em to the list? Regards Rainer --- KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB 78 1D B5 64 E0 BF 72 EB -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi! mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses I wrote such m4s. I don't think they're perfect, but they work !-) I offer to share em. shall I send em to the list? I would like them if possible, as this is exactly what I am still trying to get working 100%, you can always email them to me directly if you would prefer. Would Qmail be any better at doing this type of thing. Or how easy is it to translate sendmail m4 config file to smail or qmail configs. Regards Graham Regards Rainer --- KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB 78 1D B5 64 E0 BF 72 EB -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, mfrattola == mfrattola [EMAIL PROTECTED] writes: mfrattola Maybe I'm wrong, but doesn't this rewrite 'From' for every mfrattola message, and not only for those 'going out' of his LAN? mfrattola Also, doesn't confDELIVERY_MODE=queue queue all messages mfrattola and wait for runq to make the delivery? Umm, I think not. let me see. __ From root Sun Mar 8 02:19:33 1998 Received: (from [EMAIL PROTECTED]) by tiamat.datasync.com (8.8.8/8.8.8/Debian/GNU) id CAA09080 for root; Sun, 8 Mar 1998 02:16:07 -0600 Date: Sun, 8 Mar 1998 02:16:07 -0600 From: root root Message-Id: [EMAIL PROTECTED] To: root Subject: mirror update of Debian X-Filter: mailagent [version 3.0 PL58] for [EMAIL PROTECTED] __ See? No rewrite for local mail. Yes, but as somebody else pointed out, this is for mail bound to localhost. What happens if I'm on a.mynet.org and I write to b.mynet.org? I think sendmail doesn't see this is a local (internal LAN) address and rewrites its header like with any other internet bound message. Or so I think, since my other home machine is down (being used my windows-sister). I think I tried it (in the early days) and found I could not stop rewriting. As to the other question, yes, the confDELIVERY_MODE=queue queues all messages. My bad. The solution is to make all mailers except the local one expensive. Am I right in thinking local is used only for localhost bound mail? Where does all this magic come from? Do I have to hand edit sendmail.conf by hand? (any m4 shortcut?) -- __ egrep ^M /etc/sendmail.cf Mlocal, P=/usr/sbin/sensible-mda, F=lsDFMAw5:/|@qh90, S=10/30, R=20/40, Mprog,P=/bin/sh, F=lsDFMoqu9, S=10/30, R=20/40, D=$z:/, Msmtp,P=[IPC], F=emDFMuX, S=11/31, R=21, E=\r\n, L=990, Mesmtp, P=[IPC], F=emDFMuXa, S=11/31, R=21, E=\r\n, L=990, Msmtp8, P=[IPC], F=emDFMuX8, S=11/31, R=21, E=\r\n, L=990, Mrelay, P=[IPC], F=emDFMuXa8, S=11/31, R=61, E=\r\n, L=2040, -- Notice the flag (F) e? it is not there for local or prog mailers, but is there for all smtp or esmtp mailers, and hence the non-local mail should wait for the queue run, but the local mail is delivered immediately. This is untried; but it should work. Thank you for your answer. It seems to me (from other messages) that smail is easier to manage WRT this problem (with routers, directors and the like). Problem is I don't like smail (and recent problems with newer smail don't make me like it more). What I'd like sendmail to do is: localhost mail deliver locally don't rewrite header LAN maildeliver thru eth0 don't rewrite header internet mail deliver thru ppp0 rewrite header -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, mfrattola == mfrattola [EMAIL PROTECTED] writes: Hi, mfrattola == mfrattola [EMAIL PROTECTED] writes: mfrattola Am I right in thinking local is used only for localhost mfrattola bound mail? Where does all this magic come from? Do I have mfrattola to hand edit sendmail.conf by hand? (any m4 shortcut?) Yes. You can make believe more machines are local by adding to sendmail.cw, but then that mail shall be filed locally. This is not what you need. mfrattola Thank you for your answer. It seems to me (from other mfrattola messages) that smail is easier to manage WRT this problem mfrattola (with routers, directors and the like). Problem is I don't mfrattola like smail (and recent problems with newer smail don't make mfrattola me like it more). What I'd like sendmail to do is: mfrattola localhost mail deliver locally don't rewrite header mfrattola LAN mail deliver thru eth0 don't rewrite header mfrattola internet mail deliver thru ppp0 rewrite header This is possible by a) defining mailers, and modifying sendmail.cf to add a inexpensive smtp mailer (copy the smtp mailers and call them lsmtp et akk b) look at ruleset 1 and prevent rewrites for the LAN, while allowing rewrites for external addresses The ppp vs eth0 should be handled by the networking setup, and should not be a part of the MTA's chores. This is easy if you grok sendmail.cf, like some of us oldtimers. Unfortunately, sendmail.cf mastery is a dying art. Oh, when it is written, it can be encapsulated into a m4 hack, so everyone else can just use that. manoj who still remembers evenings spent crafting version 5 sendmail.cf's with a host of cohorts -- One should not neglect one's own welfare for that of someone else, however great. When one has understood what one's own welfare really consists of, one should apply oneself to that welfare. 166 Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Graham Lillico +44 1785 248131 [EMAIL PROTECTED] writes: Hello, I was wondering if the following is possible using either Smail or Sendmail, What I want to do is to use smail or sendmail mail to deliver my internet email, The problem I have is that I need one of these packages to deliver any local mail or network mail to the appropriate user/server, but to queue all internet email until my dialup connection is established using ppp, I also need smail or sendmail to change the from address of the email to the address of my internet email account, (i.e. email bound for the internet needs the From address changed from [EMAIL PROTECTED] which is my Linux box to [EMAIL PROTECTED] my internet email account). Is this possible? if so how. Well... Sort of; that is, I've got an smail system on my machine that does this (it's described in http://www.math.jhu.edu/~martind/mybox.html) - however, I don't know how well that setup fares under the smail from hamm. (I've put smail on hold until I have time to deal with it potentially breaking when I go full hamm - I still use the smail from bo). The smail setup I use can easily be modified so that mail to a certain collection of destination addresses doesn't result in rewritten headers - all you need to do is copy the smtp transport from the default /etc/smail/transports, and then set up routes in /etc/smail/routers to handle it; for example, an /etc/smail/routers file of: # Your comment here # Deliver my own network directly - don't rewrite localmail: driver=gethostbyname, transport=smtp; required=mynetwork.foo.com # Outside world - rewrite and send it to myisp.com for delivery smart_host: driver=smarthost, transport=smtprewriter; path=smtp.myisp.com You don't need to use a smarthost, but it's probably a good idea for an intermittently-connected site. Now I should point out that there are still some things I don't completely like about this system, and anti-spam stuff on your ISP's smtp server could screw things up - specifically, if your ISP rejects mail based on the envelope from address (the address given in the smtp MAIL FROM: command), as that can't be rewritten. Assuming that usernames are synchronized across your LAN, you may want to set up the smail on machines that are not the gateway using the satellite option of smailconfig; I don't really have much experience with that option. In any case, what you probably want to end up with on these non-gateway machines is a smartuser directive in /etc/smail/directors and a smarthost router in /etc/smail/routers sending everything on to your gateway machine, and the local_xform option on the smtp transport in /etc/smail/transports. -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
On Mon, 9 Mar 1998, Ian Perry wrote: [snip] The outgoing server on the win95 machine must be kept as an ip address because the nameserver won't be running on the linux machine until it is connected to an ISP name service. e.g SMTP server 192.168.1.25 in my case. Cant you use the c:\windows\hosts file to set up the linux machines name? works for me... but I guess it would get kind of messy with more than 2 or 3 machines. Michael Beattie ([EMAIL PROTECTED]) --- CONNECT 300... Connect 300?!?!?! #%^# NO CARRIER --- Debian GNU/Linux Ooohh You are missing out! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, mfrattola == mfrattola [EMAIL PROTECTED] writes: mfrattola Maybe I'm wrong, but doesn't this rewrite 'From' for every mfrattola message, and not only for those 'going out' of his LAN? mfrattola Also, doesn't confDELIVERY_MODE=queue queue all messages mfrattola and wait for runq to make the delivery? Umm, I think not. let me see. __ From root Sun Mar 8 02:19:33 1998 Received: (from [EMAIL PROTECTED]) by tiamat.datasync.com (8.8.8/8.8.8/Debian/GNU) id CAA09080 for root; Sun, 8 Mar 1998 02:16:07 -0600 Date: Sun, 8 Mar 1998 02:16:07 -0600 From: root root Message-Id: [EMAIL PROTECTED] To: root Subject: mirror update of Debian X-Filter: mailagent [version 3.0 PL58] for [EMAIL PROTECTED] __ See? No rewrite for local mail. As to the other question, yes, the confDELIVERY_MODE=queue queues all messages. My bad. The solution is to make all mailers except the local one expensive. -- __ egrep ^M /etc/sendmail.cf Mlocal, P=/usr/sbin/sensible-mda, F=lsDFMAw5:/|@qh90, S=10/30, R=20/40, Mprog, P=/bin/sh, F=lsDFMoqu9, S=10/30, R=20/40, D=$z:/, Msmtp, P=[IPC], F=emDFMuX, S=11/31, R=21, E=\r\n, L=990, Mesmtp, P=[IPC], F=emDFMuXa, S=11/31, R=21, E=\r\n, L=990, Msmtp8, P=[IPC], F=emDFMuX8, S=11/31, R=21, E=\r\n, L=990, Mrelay, P=[IPC], F=emDFMuXa8, S=11/31, R=61, E=\r\n, L=2040, -- Notice the flag (F) e? it is not there for local or prog mailers, but is there for all smtp or esmtp mailers, and hence the non-local mail should wait for the queue run, but the local mail is delivered immediately. This is untried; but it should work. manoj -- In general, if you think something isn't in Perl, try it out, because it usually is. :-) --Larry Wall in [EMAIL PROTECTED] Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, Graham == Graham Lillico +44 1785 248131 Graham writes: Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Put that in /etc/mail/sendmail.mc. Add in any other neat features. I also like I am assuming that where the above statement says internet.com that that is the domain of my internet email account, also what happens is my user name is different on the Debian box to my internet isp username? If possible could you explain that the above and below are doing? -- FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(redirect)dnl define(`confME_TOO', True)dnl # anti spam hacks, but these need external files to be set up, so use # with care HACK(use_ip) HACK(check_rcpt4) HACK(check_mail2) -- Graham Also is smail the default mail daemon of Debian? if so then Graham using the default mail daemon would be preferable. Yes, it is. OOOps. Sorry, I do not do smail. manoj Graham -- Saint: A dead sinner revised and edited. Ambrose Bierce Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi! Manoj Srivastava schrieb: Hi, mfrattola == mfrattola [EMAIL PROTECTED] writes: mfrattola Maybe I'm wrong, but doesn't this rewrite 'From' for every mfrattola message, and not only for those 'going out' of his LAN? mfrattola Also, doesn't confDELIVERY_MODE=queue queue all messages mfrattola and wait for runq to make the delivery? Umm, I think not. let me see. __ From root Sun Mar 8 02:19:33 1998 Received: (from [EMAIL PROTECTED]) by tiamat.datasync.com (8.8.8/8.8.8/Debian/GNU) id CAA09080 for root; Sun, 8 Mar 1998 02:16:07 -0600 Date: Sun, 8 Mar 1998 02:16:07 -0600 From: root root Message-Id: [EMAIL PROTECTED] To: root Subject: mirror update of Debian X-Filter: mailagent [version 3.0 PL58] for [EMAIL PROTECTED] __ See? No rewrite for local mail. Yes, but this message remained on the localhost, right? So I am not sure if I can assume that the header looks similar for a message sent between two hosts on the local net. Unfortunately I had no time to simply try it out yet. Can anyone comment on this? Thanks, Thomas -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
I found sendmail easier to setup than smail... others would probably disagree. I can belive that but ideally I would like to use smail but if sendmail will do what i want then i will use that. I have sendmail set up as : sendmail -bd -q 15m same as mine at the moment. I am using a win95 machine hooked to a linux machine which is on a dialup to an ISP. I am not, i have 3 linux server on as a mail server, web server, DNS Server and it is this machine that is used to dialup the internet and upload/download internet email. So it needs to be able to tell the difference between an internal bound email and an internet bound email. I just killed ppp on the linux machine and sent mail through it from the win95 machine. It queued the message then sent it out when pppupd reconnected. All well and good but what does it do why you try to send email destined for another user on the same server or to a different server. The outgoing server on the win95 machine must be kept as an ip address because the nameserver won't be running on the linux machine until it is connected to an ISP name service. e.g SMTP server 192.168.1.25 in my case. I works for me when i am connected but my email address is kept the same i.e. [EMAIL PROTECTED] not [EMAIL PROTECTED] as it should be, this prevents someone replying to that email as the return address is not valid. So i just get a reply saying that the internet isp's mail server cannot deliver the email. It did not change the headers at all. I can send you a copy of the config file (sendmail.cf) if you require. Ian Graham -- From: [EMAIL PROTECTED] To: Manoj Srivastava [EMAIL PROTECTED] Cc: debian linux debian-user@lists.debian.org Subject: Re: Smail/Sendmail Question Date: Monday, 9 March 1998 2:48 Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to ^^ Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also ^^^ Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Maybe I'm wrong, but doesn't this rewrite 'From' for every message, and not only for those 'going out' of his LAN? Also, doesn't confDELIVERY_MODE=queue queue all messages and wait for runq to make the delivery? I'm asking these question 'cos I have the same problem. -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, If your username is different on your ISP account, and you want mail to go there, your mail user agent is generally what one configures to set a correct From: and Reply-to: fields; You can, fo course, add to rule set 1 to rewrite outgoing addresses, but that requires knowledge of sendmail.cf. I don't know if exim/smail do header rewrite in a simpler fashion (they shaould, they all claim to be simpler than sendmail) For recieving mail, just add an alias in /etc/aliases remoteuser: localuser and re run newaliases In the set of instructions I gave you, I said use a line like define(`confDELIVERY_MODE', `queue'); which made sendmail queue up every thing. This is not what you asked for. The corresct solution is somewhat more complex, and is included below the explanations __ This is a Debian system; use the Debian set of path macros and so on. OSTYPE(debian)dnl Rewrite even the 'From ' header so that this message truly appears to come from internet.com FEATURE(masquerade_envelope)dnl Include local mail delivery mailers, to the spool or feeding through the .forward file MAILER(local)dnl Include mailers to send mail off site via smtp MAILER(smtp)dnl Accept mail for internet.com, so if mail comes for [EMAIL PROTECTED] from this machine (no need to send it off machine then). This can be a slight problem if you want to really send mail to a non local [EMAIL PROTECTED]; I solve it by sending mail to [EMAIL PROTECTED], which is a valid email for my ISP, and I rarely send mail to a non local user at my ISP. Cwinternet.com Rewrite most headers to pretend that mail comes from internet.com MASQUERADE_AS(internet.com)dnl __ Use a file in /etc/mail/sendmail.cw on startup to find the set of local names or aliases for my machine (alternate names for this host.) FEATURE(use_cw_file)dnl Read the file /etc/mail/sendmail.ct file to get the names of users that will be ``trusted'', that is, able to set their envelope from address using -f without generating a warning message. FEATURE(use_ct_file)dnl Reject all mail addressed to address.REDIRECT with a ``551 User not local; please try address'' message. If this is set, you can alias people who have left to their new address with .REDIRECT appended. FEATURE(redirect)dnl Include sender in group expansions. define(`confME_TOO', True)dnl # anti spam hacks, but these need external files to be set up, so use # with care file containing IP numbers of machines which can use our relay /etc/mail/LocalIP by default HACK(use_ip) If you want to use check_rcpt, do the following: Decide whether you wan to use the check for local machines by IP number (use_ip) or by name (use_names). Next, decide whether you want also allow relay to several machines in addition to those you accept as local (class w). Depending on your selection, put some of the first three HACKs into your .mc file, and always use the last one. HACK(use_ip) HACK(use_names) HACK(use_relayto) All take an optional argument (the file to use). The default filenames are listed below. HACK(check_rcpt4) Put the appropriate values in the files: use_ip [/etc/mail/LocalIP] use_names [/etc/mail/LocalNames] use_relayto [/etc/mail/RelayTo] 1997-03-16: check_rcpt4 can now make use of use_ip and use_names. It replaces check_rcpt3, which is still available if there is a problem with the new version. HACK(check_rcpt4) If you want to use check_mail2, do the following: Put HACK(check_mail2) [This has also an optional argument, the default is given below.] in your .mc file. Put addresses of well-known spammers (e-mail addresses, domains) in the appropriate database [default]: junk [hash /etc/mail/junk] The format is: junk.domain JUNK [EMAIL PROTECTED] SPAMMER Create the database (man makemap) in the chosen format. PS: You can activate the reverse IP lookup and the validity check of the FROM address by define(`_IP_LOOKUP_',1)dnl define(`_DNSVALID_',1)dnl respectively. HACK(check_mail2) -- I would advice you to
Re: Smail/Sendmail Question
Please unsubscribe us. Thanks Graham Lillico +44 1785 248131 a écrit: I found sendmail easier to setup than smail... others would probably disagree. I can belive that but ideally I would like to use smail but if sendmail will do what i want then i will use that. I have sendmail set up as : sendmail -bd -q 15m same as mine at the moment. I am using a win95 machine hooked to a linux machine which is on a dialup to an ISP. I am not, i have 3 linux server on as a mail server, web server, DNS Server and it is this machine that is used to dialup the internet and upload/download internet email. So it needs to be able to tell the difference between an internal bound email and an internet bound email. I just killed ppp on the linux machine and sent mail through it from the win95 machine. It queued the message then sent it out when pppupd reconnected. All well and good but what does it do why you try to send email destined for another user on the same server or to a different server. The outgoing server on the win95 machine must be kept as an ip address because the nameserver won't be running on the linux machine until it is connected to an ISP name service. e.g SMTP server 192.168.1.25 in my case. I works for me when i am connected but my email address is kept the same i.e. [EMAIL PROTECTED] not [EMAIL PROTECTED] as it should be, this prevents someone replying to that email as the return address is not valid. So i just get a reply saying that the internet isp's mail server cannot deliver the email. It did not change the headers at all. I can send you a copy of the config file (sendmail.cf) if you require. Ian Graham -- From: [EMAIL PROTECTED] To: Manoj Srivastava [EMAIL PROTECTED] Cc: debian linux debian-user@lists.debian.org Subject: Re: Smail/Sendmail Question Date: Monday, 9 March 1998 2:48 Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to ^^ Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also ^^^ Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Maybe I'm wrong, but doesn't this rewrite 'From' for every message, and not only for those 'going out' of his LAN? Also, doesn't confDELIVERY_MODE=queue queue all messages and wait for runq to make the delivery? I'm asking these question 'cos I have the same problem. -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . begin: vcard fn: Fari Boustantchi n: Boustantchi;Fari org:Softway France adr:32 Av. de l'Europe;;Energy 1 BP 126;Vélizy;;78148;France email;internet: [EMAIL PROTECTED] title: Managing Director tel;work: 33.1.39.26.50.00 tel;fax:33.1.39.26.50.50 x-mozilla-cpt: ;0 x-mozilla-html: TRUE version:2.1 end:vcard
Re: Smail/Sendmail Question
Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to ^^ Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also ^^^ Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Maybe I'm wrong, but doesn't this rewrite 'From' for every message, and not only for those 'going out' of his LAN? Also, doesn't confDELIVERY_MODE=queue queue all messages and wait for runq to make the delivery? I'm asking these question 'cos I have the same problem. -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
I found sendmail easier to setup than smail... others would probably disagree. I have sendmail set up as : sendmail -bd -q 15m I am using a win95 machine hooked to a linux machine which is on a dialup to an ISP. I just killed ppp on the linux machine and sent mail through it from the win95 machine. It queued the message then sent it out when pppupd reconnected. The outgoing server on the win95 machine must be kept as an ip address because the nameserver won't be running on the linux machine until it is connected to an ISP name service. e.g SMTP server 192.168.1.25 in my case. It did not change the headers at all. I can send you a copy of the config file (sendmail.cf) if you require. Ian -- From: [EMAIL PROTECTED] To: Manoj Srivastava [EMAIL PROTECTED] Cc: debian linux debian-user@lists.debian.org Subject: Re: Smail/Sendmail Question Date: Monday, 9 March 1998 2:48 Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to ^^ Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also ^^^ Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Maybe I'm wrong, but doesn't this rewrite 'From' for every message, and not only for those 'going out' of his LAN? Also, doesn't confDELIVERY_MODE=queue queue all messages and wait for runq to make the delivery? I'm asking these question 'cos I have the same problem. -- |||| ||| Marco Frattola Microsoft is not the answer ||`..'|| |||... Piacenza, ItalyMicrosoft is the question ||| ||| |||''[EMAIL PROTECTED]No is the answer ||| ||| ||| www.enjoy.it/users/~mk/index.html Live Linux, live free! -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] . -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Smail/Sendmail Question
Hello, I was wondering if the following is possible using either Smail or Sendmail, What I want to do is to use smail or sendmail mail to deliver my internet email, The problem I have is that I need one of these packages to deliver any local mail or network mail to the appropriate user/server, but to queue all internet email until my dialup connection is established using ppp, I also need smail or sendmail to change the from address of the email to the address of my internet email account, (i.e. email bound for the internet needs the From address changed from [EMAIL PROTECTED] which is my Linux box to [EMAIL PROTECTED] my internet email account). Is this possible? if so how. Also is smail the default mail daemon of Debian? if so then using the default mail daemon would be preferable. Regards Graham -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .
Re: Smail/Sendmail Question
Hi, Graham == Graham Lillico +44 1785 248131 Graham writes: Graham Hello, I was wondering if the following is possible using Graham either Smail or Sendmail, Simple in sendmail. Graham What I want to do is to use smail or sendmail mail to deliver Graham my internet email, The problem I have is that I need one of Graham these packages to deliver any local mail or network mail to Graham the appropriate user/server, but to queue all internet email Graham until my dialup connection is established using ppp, I also Graham need smail or sendmail to change the from address of the Graham email to the address of my internet email account, (i.e. email Graham bound for the internet needs the From address changed from Graham [EMAIL PROTECTED] which is my Linux box to Graham [EMAIL PROTECTED] my internet email account). Graham Is this possible? if so how. __ OSTYPE(debian)dnl FEATURE(masquerade_envelope)dnl define(`confDELIVERY_MODE', `queue') MAILER(local)dnl MAILER(smtp)dnl Cwinternet.com MASQUERADE_AS(internet.com)dnl __ Put that in /etc/mail/sendmail.mc. Add in any other neat features. I also like -- FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(redirect)dnl define(`confME_TOO', True)dnl # anti spam hacks, but these need external files to be set up, so use # with care HACK(use_ip) HACK(check_rcpt4) HACK(check_mail2) -- Graham Also is smail the default mail daemon of Debian? if so then Graham using the default mail daemon would be preferable. Yes, it is. OOOps. Sorry, I do not do smail. manoj -- Saint: A dead sinner revised and edited. Ambrose Bierce Manoj Srivastava [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/ Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E -- E-mail the word unsubscribe to [EMAIL PROTECTED] TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to [EMAIL PROTECTED] .