RE: SendMail Help!
> What do I've to change so that: > > -My Domain Name (must be sub.dom.com)? Don't quite understand what you are getting at here. > -Bind sendmail to an IP? Here is a pretty good document I found that describes how to bind only to loopback address, but I'm sure you could hack it to force it to listen to a different address instead. It also explains rebuilding your cf file from mc. http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/send mail.htm > -Setup my sendmail to deliver the mails to another mail > server(dom.com)? Check out the mailertable.sample file. I believe that it is there where you will alias the subdomain to another location. Create a new mailertable file, then whilst in your mail directory (usually /etc/mail), just type make, or: # makemap hash mailertable < mailertable HTH, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Sendmail help needed
Hello Glenn, Thanks for your time. Well it is actually an issue. The reports are very important for our departments. They do not have access to see if the procedures went OK and as consequence they can't continue to work. If I can't get this to work with redundancy I will have to make some kind of script to change the A record for the mailhub, in our nameserver, when it's down so the backup mailserver can get with it's work. Any help on this issue is apreciated. On 7/29/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > At 01:48 AM 7/29/2005, Alexandre Vieira wrote: > >Hello Glenn, > > > >The odds of the reporting system are not of my fully knowledge, I just > >know how and what mails go from where to who. > > > >Imagine that a script on a reporting machine does this: > > > ># mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj > > > >It will try to deliver the mail locally, as suposed to. If I define a > >central hub or a Smart host it will deliver the mail I exampled to > >[EMAIL PROTECTED] and it works fine. The problem is that it won't > >lookup the mailhub MX record, It will send it directly to mailhub:25. > >Now imagine that mailhub is down? There is a backup server listed as > >an MX record for the mailhub domain with a higher pref that would take > >the work while mailhub prefered MX is down. > > If that's all you're worried about, you don't have to worry. If you > specify a smart host and it's not available, the mail will get queued > locally until it is available. The default settings will hold it in the > queue for 5 days. If your smart host is down for that long, you probably > have other things to worry about. > > -Glenn > > > >I've been reading a little more and I think there is some kind of > >feature/option that force a MX lookup on the mailhub host. > > > >Thank you > > > >On 7/29/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > > > At 12:30 AM 7/29/2005, you wrote: > > > >Hello, > > > > > > > >Thanks for the help. > > > > > > > >The thing is that our main mailserver is not able to work with reports > > > >from only one address. It has a db with some "names" that match > > > >[EMAIL PROTECTED] and then send the reports to the respective > > > >persons/mailing lists. > > > >So the basics of the question is: Is it possible to get every mail > > > >(including local mail) redirected to one domain with MX lookup? I've > > > >been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't > > > >know if this will solve the problem. > > > > > > ok, lets see if I understand this correctly... > > > > > > You have an existing mail server that handles mail for you local network. > > > Some of the mail sent to that server is compared to a database which has > > > entries that look like [EMAIL PROTECTED] If a match is found, > > > the message is redistributed to some list of email addresses. So far so > > > good? hope so... > > > > > > The addresses that are looked at for a match, are they the from address or > > > the to address? > > > > > > For example, I send an email to you mail server using the address > > > [EMAIL PROTECTED] Since I sent the email, it looks like it came from > > > [EMAIL PROTECTED] One of those two addresses are compared to a > > > database to decide what to do with the message. From your description, it > > > sounds like the To: address is the one being looked at by the mail server. > > > > > > "Local" mail is normally considered to be mail between two addresses which > > > are on the same machine. The from and to addresses for the local mail can > > > have only account names, or, one or both could have a domain associated > > > with it. Potentially, mail between the following pairs of addresses could > > > all be local: > > > > > > From: To: > > > foo bar > > > [EMAIL PROTECTED]bar > > > foo [EMAIL PROTECTED] > > > > > > From your description above, it sounds like you're looking at mail that > > > is > > > always delivered to the same address on the mail server, and then you're > > > using the address the mail was from to decide what to do with it. Is that > > > correct? > > > > > > From the description below (from the original email) it sounds like the > > > scripts in question are running on machines that are not the mail server, > > > and they're only specifying the username to deliver to, and not adding any > > > domain name or hostname to the recipient. Depending on what else is > > > happening on the machines that have the scripts that generate the mail, it > > > sounds like building a null client is probably the simplest thing to > > > do. Other options are using some of the masquerading features, or by > > > using > > > LOCAL_RELAY to force unqualified names to be send to a central server > > > which > > > will figure out what to do with them. > > > > > > Hope some of that helps...Let me know if I can clarify anything, I'll be > > > around for at least another few hours... > > > > > > -Glen
Re: Sendmail help needed
At 01:48 AM 7/29/2005, Alexandre Vieira wrote: Hello Glenn, The odds of the reporting system are not of my fully knowledge, I just know how and what mails go from where to who. Imagine that a script on a reporting machine does this: # mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj It will try to deliver the mail locally, as suposed to. If I define a central hub or a Smart host it will deliver the mail I exampled to [EMAIL PROTECTED] and it works fine. The problem is that it won't lookup the mailhub MX record, It will send it directly to mailhub:25. Now imagine that mailhub is down? There is a backup server listed as an MX record for the mailhub domain with a higher pref that would take the work while mailhub prefered MX is down. If that's all you're worried about, you don't have to worry. If you specify a smart host and it's not available, the mail will get queued locally until it is available. The default settings will hold it in the queue for 5 days. If your smart host is down for that long, you probably have other things to worry about. -Glenn I've been reading a little more and I think there is some kind of feature/option that force a MX lookup on the mailhub host. Thank you On 7/29/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > At 12:30 AM 7/29/2005, you wrote: > >Hello, > > > >Thanks for the help. > > > >The thing is that our main mailserver is not able to work with reports > >from only one address. It has a db with some "names" that match > >[EMAIL PROTECTED] and then send the reports to the respective > >persons/mailing lists. > >So the basics of the question is: Is it possible to get every mail > >(including local mail) redirected to one domain with MX lookup? I've > >been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't > >know if this will solve the problem. > > ok, lets see if I understand this correctly... > > You have an existing mail server that handles mail for you local network. > Some of the mail sent to that server is compared to a database which has > entries that look like [EMAIL PROTECTED] If a match is found, > the message is redistributed to some list of email addresses. So far so > good? hope so... > > The addresses that are looked at for a match, are they the from address or > the to address? > > For example, I send an email to you mail server using the address > [EMAIL PROTECTED] Since I sent the email, it looks like it came from > [EMAIL PROTECTED] One of those two addresses are compared to a > database to decide what to do with the message. From your description, it > sounds like the To: address is the one being looked at by the mail server. > > "Local" mail is normally considered to be mail between two addresses which > are on the same machine. The from and to addresses for the local mail can > have only account names, or, one or both could have a domain associated > with it. Potentially, mail between the following pairs of addresses could > all be local: > > From: To: > foo bar > [EMAIL PROTECTED]bar > foo [EMAIL PROTECTED] > > From your description above, it sounds like you're looking at mail that is > always delivered to the same address on the mail server, and then you're > using the address the mail was from to decide what to do with it. Is that > correct? > > From the description below (from the original email) it sounds like the > scripts in question are running on machines that are not the mail server, > and they're only specifying the username to deliver to, and not adding any > domain name or hostname to the recipient. Depending on what else is > happening on the machines that have the scripts that generate the mail, it > sounds like building a null client is probably the simplest thing to > do. Other options are using some of the masquerading features, or by using > LOCAL_RELAY to force unqualified names to be send to a central server which > will figure out what to do with them. > > Hope some of that helps...Let me know if I can clarify anything, I'll be > around for at least another few hours... > > -Glenn > > > >On 7/28/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > > > At 03:17 PM 7/28/2005, Alexandre Vieira wrote: > > > >Hello folks, > > > > > > > >I'm trying to get past a standard in sendmail which is very simple. > > > > > > > >I have several machines reporting mails trough local MTA's (sendmail) > > > >in each one of the boxes to our main mailserver. The thing is, I did > > > >not developed the scripts and they are using "mailx -s user" > > > >which normally would try to deliver it to a local account in the > > > >machine. So the question is: Can I, in any way, define that every > > > >"user" passed on the mailx in every script gets resolved to > > > >[EMAIL PROTECTED] and not to a local system account? We have > > > >hundreds of "names" in the scripts, so aliasing doesn't work for me. > > > > > > If you don't _ever_ want things to be delivered local
Re: Sendmail help needed
Hello Glenn, The odds of the reporting system are not of my fully knowledge, I just know how and what mails go from where to who. Imagine that a script on a reporting machine does this: # mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj It will try to deliver the mail locally, as suposed to. If I define a central hub or a Smart host it will deliver the mail I exampled to [EMAIL PROTECTED] and it works fine. The problem is that it won't lookup the mailhub MX record, It will send it directly to mailhub:25. Now imagine that mailhub is down? There is a backup server listed as an MX record for the mailhub domain with a higher pref that would take the work while mailhub prefered MX is down. I've been reading a little more and I think there is some kind of feature/option that force a MX lookup on the mailhub host. Thank you On 7/29/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > At 12:30 AM 7/29/2005, you wrote: > >Hello, > > > >Thanks for the help. > > > >The thing is that our main mailserver is not able to work with reports > >from only one address. It has a db with some "names" that match > >[EMAIL PROTECTED] and then send the reports to the respective > >persons/mailing lists. > >So the basics of the question is: Is it possible to get every mail > >(including local mail) redirected to one domain with MX lookup? I've > >been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't > >know if this will solve the problem. > > ok, lets see if I understand this correctly... > > You have an existing mail server that handles mail for you local network. > Some of the mail sent to that server is compared to a database which has > entries that look like [EMAIL PROTECTED] If a match is found, > the message is redistributed to some list of email addresses. So far so > good? hope so... > > The addresses that are looked at for a match, are they the from address or > the to address? > > For example, I send an email to you mail server using the address > [EMAIL PROTECTED] Since I sent the email, it looks like it came from > [EMAIL PROTECTED] One of those two addresses are compared to a > database to decide what to do with the message. From your description, it > sounds like the To: address is the one being looked at by the mail server. > > "Local" mail is normally considered to be mail between two addresses which > are on the same machine. The from and to addresses for the local mail can > have only account names, or, one or both could have a domain associated > with it. Potentially, mail between the following pairs of addresses could > all be local: > > From: To: > foo bar > [EMAIL PROTECTED]bar > foo [EMAIL PROTECTED] > > From your description above, it sounds like you're looking at mail that is > always delivered to the same address on the mail server, and then you're > using the address the mail was from to decide what to do with it. Is that > correct? > > From the description below (from the original email) it sounds like the > scripts in question are running on machines that are not the mail server, > and they're only specifying the username to deliver to, and not adding any > domain name or hostname to the recipient. Depending on what else is > happening on the machines that have the scripts that generate the mail, it > sounds like building a null client is probably the simplest thing to > do. Other options are using some of the masquerading features, or by using > LOCAL_RELAY to force unqualified names to be send to a central server which > will figure out what to do with them. > > Hope some of that helps...Let me know if I can clarify anything, I'll be > around for at least another few hours... > > -Glenn > > > >On 7/28/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > > > At 03:17 PM 7/28/2005, Alexandre Vieira wrote: > > > >Hello folks, > > > > > > > >I'm trying to get past a standard in sendmail which is very simple. > > > > > > > >I have several machines reporting mails trough local MTA's (sendmail) > > > >in each one of the boxes to our main mailserver. The thing is, I did > > > >not developed the scripts and they are using "mailx -s user" > > > >which normally would try to deliver it to a local account in the > > > >machine. So the question is: Can I, in any way, define that every > > > >"user" passed on the mailx in every script gets resolved to > > > >[EMAIL PROTECTED] and not to a local system account? We have > > > >hundreds of "names" in the scripts, so aliasing doesn't work for me. > > > > > > If you don't _ever_ want things to be delivered locally, you can create > > > what sendmail calls a null client. That will send all mail to the address > > > you specify. You can get more details from /usr/share/sendmail/cf/README > > > > > > -Glenn > > > > > > > > > >My current hack is defining DR and DS in the sendmail.cf to a static > > > >hostname but that takes redundancy to our mail system since if the > > > >main m
Re: Sendmail help needed
Hello, Thanks for the help. The thing is that our main mailserver is not able to work with reports from only one address. It has a db with some "names" that match [EMAIL PROTECTED] and then send the reports to the respective persons/mailing lists. So the basics of the question is: Is it possible to get every mail (including local mail) redirected to one domain with MX lookup? I've been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't know if this will solve the problem. On 7/28/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > At 03:17 PM 7/28/2005, Alexandre Vieira wrote: > >Hello folks, > > > >I'm trying to get past a standard in sendmail which is very simple. > > > >I have several machines reporting mails trough local MTA's (sendmail) > >in each one of the boxes to our main mailserver. The thing is, I did > >not developed the scripts and they are using "mailx -s user" > >which normally would try to deliver it to a local account in the > >machine. So the question is: Can I, in any way, define that every > >"user" passed on the mailx in every script gets resolved to > >[EMAIL PROTECTED] and not to a local system account? We have > >hundreds of "names" in the scripts, so aliasing doesn't work for me. > > If you don't _ever_ want things to be delivered locally, you can create > what sendmail calls a null client. That will send all mail to the address > you specify. You can get more details from /usr/share/sendmail/cf/README > > -Glenn > > > >My current hack is defining DR and DS in the sendmail.cf to a static > >hostname but that takes redundancy to our mail system since if the > >main mailserver is down the backup mail server (higher MX) won't take > >any effect. > > > >Any help apreciated > >Cheers > >___ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Sendmail help needed
At 03:17 PM 7/28/2005, Alexandre Vieira wrote: Hello folks, I'm trying to get past a standard in sendmail which is very simple. I have several machines reporting mails trough local MTA's (sendmail) in each one of the boxes to our main mailserver. The thing is, I did not developed the scripts and they are using "mailx -s user" which normally would try to deliver it to a local account in the machine. So the question is: Can I, in any way, define that every "user" passed on the mailx in every script gets resolved to [EMAIL PROTECTED] and not to a local system account? We have hundreds of "names" in the scripts, so aliasing doesn't work for me. If you don't _ever_ want things to be delivered locally, you can create what sendmail calls a null client. That will send all mail to the address you specify. You can get more details from /usr/share/sendmail/cf/README -Glenn My current hack is defining DR and DS in the sendmail.cf to a static hostname but that takes redundancy to our mail system since if the main mailserver is down the backup mail server (higher MX) won't take any effect. Any help apreciated Cheers ___ 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 help needed!!!
Hussain Umair wrote: hi all, im tryin to get my bsd box to run as an email server on my local lan, squid is already running perfectly on that but my lan clients cannot retrieve their mails through pop or smtp...ive tried everything but im getting nowhere my bsd box has an ip 192.168.1.125 and the other one is a static given to me by my service provider ...now ive installed sendmail and qpopper but nothing seems to be working for me...and my lan users cannot recieve their mails from yahoo or hotmail on their outlook express...so kindly if any one has ne ideas to help me out here id b greatfull ...config's might help alot...thanks in advance...chao First, take a deep breath. Then pour yourself a strong cup of coffee (or whatever helps you stay lucid) and head over to http://www.sendmail.org and do some serious reading. Start with the FAQ and the "Email Explained" document so you understand the fundamentals and how the different parts are supposed to work. Do the same for Qpopper. Expect to invest considerable effort (read: time) into learning this. Start by articulating precisely what you expect from your "mail server" then come back here and ask a *specific* question that those with more experience might be motivated to answer. Be prepared to provide details on steps you've taken to install and configure the appropriate components as well as specific error messages, contents of log files, etc. that seem pertinent to troubleshooting your problem (as *you* perceive it; hence the suggestion on "articulating expectations" above). Remember: the quality of what you'll get back is (usually) directly proportional to what you put in... EB ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help needed!!!
On Fri, 27 Aug 2004 03:43:18 +0500, Hussain Umair <[EMAIL PROTECTED]> wrote: > hi all, >im tryin to get my bsd box to run as an email server on my local lan, > squid is already running perfectly on that but my lan clients cannot > retrieve their mails through pop or smtp As far as I know squid is a proxy server and has nothing to do with SMTP, POP etc. >...ive tried everything but im > getting nowhere my bsd box has an ip 192.168.1.125 and the other one is a > static given to me by my service provider ...now ive installed sendmail and > qpopper but nothing seems to be working for me...and my lan users cannot > recieve their mails from yahoo or hotmail on their outlook express...so If you are trying to allow users to access their "YAHOO!" or "Hotmail" account through your sendmail setup, then its quite unfortunate that it CANT be done. However if your user does have a pay account from "YAHOO!" then he can get things working with POP3. You need to fetch the mail from the remote "YAHOO!" mailbox to your local mail server. For that use something like fetchmail (cd /usr/ports, make search key=fetchmail | more). Then you can further distribute the mail using Qpopper. Also you need to run a SMTP relay to let the user mail "out". But that is definitely not a good idea because almost all mail servers check the reverse DNS before accepting mails and thus most likely the mails would be rejected or delivered as spam to the target accounts. For Outlook to work normally you coould set up a NAT. Refer to the handbook for the nitty gritty details. > kindly if any one has ne ideas to help me out here id b greatfull > config's might help alot...thanks in advance...chao > You have the ideas now. Implementation is yours =) Regards S. -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail help?
On Thu, 22 Jan 2004, fbsd_user wrote: > totally different. I believe the original poster was asking about > using sendmail to retrieve email from his ISP's smtp server. And the OP was asking about _outgoing_ smtp. Regards, /\_/\ "All dogs go to heaven." [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo==+ | for a in past present future; do| | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=+ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
- Original Message - From: "Peter Risdon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 11:31 AM Subject: Re: sendmail help? > Micheal Patterson wrote: > > > Fetchmail can't retrieve mail from an smtp server that I am > > > >currently aware of as it's designed to speak pop protocol and then deliver > >it locally to an awaiting smtp server for local delivery. > > > > > Fetchmail can use various protocols, including etrn, which is used to > flush queues on smtp servers. This is a common protocol: Microsoft > Exchange 2000 and 2003 ship without a pop3 client and use etrn > exclusively (unless you install some 3rd party client). > > So you can use sendmail to collect mail using etrn, and most ISPs offer > etrn, but this isn't what the OP was asking about. > > PWR. The only current reference that I had when I made that post was for version 5.7.2 which states in it's man page: "In ETRN and ODMR modes, fetchmail does not actually retrieve messages; instead, it asks the server's SMTP lis- tener to start a queue flush to the client via SMTP. Therefore it sends only undelivered messages." I've not used fetchmail for quite some time simply because I've no need to do so. If that's not the current version, then that may have changed considerably. But, as you stated, the OP was asking about smtp-auth via sendmail. -- Micheal Patterson Network Administration TSG Incorporated 405-917-0600 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail help?
> > As I stated before, I believe the problem is that sendmail is not > translating my name in the "from" section of the email. When The mail > gets rejected, it gets send back with "From: [EMAIL PROTECTED]", My > isp wants it > to be "From [EMAIL PROTECTED]" What do you have listed in your "from" on your mail client when you send the e-mail? Is it shown there as [EMAIL PROTECTED] or as "[EMAIL PROTECTED]" Many ISPs don't read the from line to determine if its acceptable or not, but go on the login. Can you send from your mail client through the ISP? What if you change your "from address" in the client, can you still send through the ISP? That would let you know if it was the from line being the problem. Also take a look at this http://mail-abuse.org/dul/gateways.htm -Mike ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
On Thu, 22 Jan 2004, Micheal Patterson wrote: > > >>I believe the original poster was asking about > >> using sendmail to retrieve email from his ISP's smtp server. And > >> it's still a lot easier to install fetchmail than to reinstall > >> sendmail. I use fetchmail to retrieve mail from my isp's pop server. > Apparently he's having trouble understanding a number of things lately and > I'm beginning to wonder if he's a troll or not. That's a bit harsh. > http://www.sendmail.org/~ca/email/auth.html#DefaultAuthInfo > > Within that site, it will give you assistance in setting up sendmail to act > as an smtp client using smtp-auth. > > > > DefaultAuthInfo (confDEF_AUTH_INFO) > specifies a file in which the authorization identity, the authentication > identity, the secret, and the realm to be used for authentication are > stored. This file must be in a safe directory and unreadable by everyone > except root (or TrustedUser). It is used when sendmail acts as a client to > authenticate itself to a server. Example: > admin > admin > MySecretPassword > example.domain > > Notes: all data is case sensitive (usually) and the entire line is used in > each case (including any white space!). > recommended filename: /etc/mail/default-auth-info > > > > I trust this is what the OP's original intentions were. Yes, it was. Thank you. I really don't see what the big mix up was... I guess I didn't post my problem clearly. I have tried the /etc/mail/default-auth-info method (I have read that page), but I just can't get it to work. I have also read that the new way to do it is with the /etc/mail/authinfo file, with the format I gave earlier. I have compiled sendmail with sasl (1) support. But I don't think that the smtp-auth part is the issue. As I stated before, I believe the problem is that sendmail is not translating my name in the "from" section of the email. When The mail gets rejected, it gets send back with "From: [EMAIL PROTECTED]", My isp wants it to be "From [EMAIL PROTECTED]" I think this is probably not too difficult to fix, but I can't see where I am going wrong. I can't seem to find any good tutorials/documentation on getting a simple sendmail client working with a dynamic ip address using smtp authentication, If anybody has any references they'd like to share, or any suggestions for me to try it would be greatly appreciated. What about my sendmail_msp_que question? what does this component of sendmail do? (do I need it?) TIA -Adam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
Micheal Patterson wrote: Fetchmail can't retrieve mail from an smtp server that I am currently aware of as it's designed to speak pop protocol and then deliver it locally to an awaiting smtp server for local delivery. Fetchmail can use various protocols, including etrn, which is used to flush queues on smtp servers. This is a common protocol: Microsoft Exchange 2000 and 2003 ship without a pop3 client and use etrn exclusively (unless you install some 3rd party client). So you can use sendmail to collect mail using etrn, and most ISPs offer etrn, but this isn't what the OP was asking about. PWR. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
- Original Message - From: "Matthew Seaman" <[EMAIL PROTECTED]> To: "fbsd_user" <[EMAIL PROTECTED]> Cc: "Dinesh Nair" <[EMAIL PROTECTED]>; "Adam Bozanich" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 10:57 AM Subject: Re: sendmail help? On Thu, Jan 22, 2004 at 11:43:45AM -0500, fbsd_user wrote: >>I believe the original poster was asking about >> using sendmail to retrieve email from his ISP's smtp server. And >> it's still a lot easier to install fetchmail than to reinstall >> sendmail. >The OP said: > >> I have a dial up DSL account that gives me an outgoing smtp account that >> requires smtp authentication. >> >Which part of "outgoing" are you having difficulty understanding? > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > PGP: http://www.infracaninophile.co.uk/pgpkey Marlow > Tel: +44 1628 476614 Bucks., SL7 1TH UK Apparently he's having trouble understanding a number of things lately and I'm beginning to wonder if he's a troll or not. To assist the OP on this issue, check out this link: http://www.sendmail.org/~ca/email/auth.html#DefaultAuthInfo Within that site, it will give you assistance in setting up sendmail to act as an smtp client using smtp-auth. DefaultAuthInfo (confDEF_AUTH_INFO) specifies a file in which the authorization identity, the authentication identity, the secret, and the realm to be used for authentication are stored. This file must be in a safe directory and unreadable by everyone except root (or TrustedUser). It is used when sendmail acts as a client to authenticate itself to a server. Example: admin admin MySecretPassword example.domain Notes: all data is case sensitive (usually) and the entire line is used in each case (including any white space!). recommended filename: /etc/mail/default-auth-info I trust this is what the OP's original intentions were. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
- Original Message - From: "fbsd_user" <[EMAIL PROTECTED]> To: "Dinesh Nair" <[EMAIL PROTECTED]> Cc: "Adam Bozanich" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 22, 2004 10:43 AM Subject: RE: sendmail help? > Yes I am serious. I have used 5 different ISP's over the years and > not one let sendmail have direct access to their smtp email servers. > They all required me to use their pop3 server which is something > totally different. I believe the original poster was asking about > using sendmail to retrieve email from his ISP's smtp server. And > it's still a lot easier to install fetchmail than to reinstall > sendmail. > Did you place pop3.ispname.com in your smtp server field of Outlook and change the default port 25 to something else? If you didn't change the port, then their smtp daemon is listening for your traffinc on port 25 of the same server that they're running pop3 on. This isn't too uncommon. If the OP was asking about getting the ISP smtp server to send to his sendmail. For that to happen, at minimum, the following has to be done. He's got a static ip and the isp places a forward on his ISP account to forward to [EMAIL PROTECTED] and his system is configured to accept mail for xxx.xxx.xxx.xxx, or, he has a domain assigned with an mx record pointing to his home system. Fetchmail can't retrieve mail from an smtp server that I am currently aware of as it's designed to speak pop protocol and then deliver it locally to an awaiting smtp server for local delivery. -- Micheal Patterson TSG Network Administration 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
On Thu, Jan 22, 2004 at 11:43:45AM -0500, fbsd_user wrote: >I believe the original poster was asking about > using sendmail to retrieve email from his ISP's smtp server. And > it's still a lot easier to install fetchmail than to reinstall > sendmail. The OP said: > I have a dial up DSL account that gives me an outgoing smtp account that > requires smtp authentication. Which part of "outgoing" are you having difficulty understanding? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
RE: sendmail help?
Yes I am serious. I have used 5 different ISP's over the years and not one let sendmail have direct access to their smtp email servers. They all required me to use their pop3 server which is something totally different. I believe the original poster was asking about using sendmail to retrieve email from his ISP's smtp server. And it's still a lot easier to install fetchmail than to reinstall sendmail. -Original Message- From: Dinesh Nair [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:42 AM To: fbsd_user Cc: Matthew Seaman; Adam Bozanich; [EMAIL PROTECTED] Subject: RE: sendmail help? On Thu, 22 Jan 2004, fbsd_user wrote: > I think you are barking up the wrong tree. I don't think you understand > how your ISP works. ISP's do not allow direct smtp access to their email > servers, they consider it an security risk to their environment. Did are you serious ? i sometimes send mail out, by connecting to my ISP's smtp servers. i believe this practice is the same worldwide. however, due to spam and open relays, some isps may filter access to their smtp server to only allow thier customers. this can be done either thru smtp authentication or by ip address filtering (which malaysian isps use). Regards, /\_/\ "All dogs go to heaven." [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo ==+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=== ==+ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail help?
On Thu, 22 Jan 2004, fbsd_user wrote: > I think you are barking up the wrong tree. I don't think you understand > how your ISP works. ISP's do not allow direct smtp access to their email > servers, they consider it an security risk to their environment. Did are you serious ? i sometimes send mail out, by connecting to my ISP's smtp servers. i believe this practice is the same worldwide. however, due to spam and open relays, some isps may filter access to their smtp server to only allow thier customers. this can be done either thru smtp authentication or by ip address filtering (which malaysian isps use). Regards, /\_/\ "All dogs go to heaven." [EMAIL PROTECTED](0 0)http://www.alphaque.com/ +==oOO--(_)--OOo==+ | for a in past present future; do| | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=+ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help?
fbsd_user wrote: I think you are barking up the wrong tree. I don't think you understand how your ISP works. ISP's do not allow direct smtp access to their email servers, they consider it an security risk to their environment. Sorry, this isn't true. But they don't operate open relays. There are a number of ways to limit use to valid customers, such as only relaying for computers with ip addresses in a particular range or subnet or, as in this case, some form of authentication. If you have a dsl connection, you sometimes _have to_ send outgoing mail via your ISP's smtp servers. Some ISPs actually block all outgoing smtp traffic that is NOT routed through one of their servers. In other cases, ip address blocks used for DSL connections get blacklisted. I've just come across an example where this has happened with a major US academic institution and to quote their security team anonymously: We've received many complaints from our staff about spam which came directly from poorly administered/hacked machines in this particular "domainname.obscured.com" range, so we've blocked it. If you can arrange with someone else (ISP-name-obscured, for instance) to have your outbound e-mail sent through their mail servers, then we can accept your e-mail, but we no longer accept e-mail sent directly to us from mail servers sitting on dialup/DSL/cable/broadband/pooled connections. I've been routing outgoing e-mail via the smtp servers of various ISPs for years. PWR. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail help?
[EMAIL PROTECTED] wrote: > I think you are barking up the wrong tree. > I don't think you understand how your ISP works. > ISP's do not allow direct smtp access to their email servers, > they consider it an security risk to their environment. Erm, the OP is trying to send mail, not receive it: >> Hi all. I am having a really hard time getting sendmail to work for >> me. I have a dial up DSL account that gives me an outgoing smtp >> account that requires smtp authentication. ISPs generally do allow access to their servers for outgoing mail. Most of them positively encourage it, in fact :-) Scott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: sendmail help?
I think you are barking up the wrong tree. I don't think you understand how your ISP works. ISP's do not allow direct smtp access to their email servers, they consider it an security risk to their environment. Did your ISP tech support tell you they allow direct smtp access to their email services, or are you confusing pop3 access with smtp? You have to use fetchmail to retrieve your email from your ISP's pop3 server to populate your sendmail server. This is how all non-commercial users do it. Beside it's a whole lot easier to install the fetchmail package then reinstall sendmail with sasl support. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matthew Seaman Sent: Thursday, January 22, 2004 7:10 AM To: Adam Bozanich Cc: [EMAIL PROTECTED] Subject: Re: sendmail help? On Wed, Jan 21, 2004 at 11:33:57PM -0800, Adam Bozanich wrote: > > Hi all. I am having a really hard time getting sendmail to work for me. > I have a dial up DSL account that gives me an outgoing smtp account that > requires smtp authentication. Judging by the .mc files and so forth you attached, you seem to have gone a long way towards achieving that. You don't mention SASL (Simple Authentication and Security Layer) -- by default, the sendmail on FreeBSD doesn't contain any SASL functionality, but you will need to add it in order to use authentication. First install the security/cyrus-sasl2 port. Then edit your /etc/make.conf to change the sendmail(8) compilation to include linking in the SASL libraries: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 Then rebuild and re-install sendmail from the system sources. Easiest way to do that is to do a complete 'make buildworld, make installworld' cycle as documented in the handbook. Then you need to add the SASL options to your sendmail configuration, as you have done. There are some more detailed instructions here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth. html (Those instructions actually apply to SASL v1 -- but it works almost identically with the SASL2 settingd as I showed above). See also: http://www.sendmail.org/~ca/email/auth.html but those instructions are for an older version of sendmail, so you'll have to take care to work out what is still applicable. > For now, I'd simply like to be able to send mail from this local machine. > I think the problem I am having is that the "from:" field in emails still > has my local user name, rather than the one required by my isp. That's what the genericstable stuff should fix for you. It's something that generally works really easily, so there's not that much in the way of HOWTOs about. See items 6 and 7 of: http://www.sendmail.org/virtual-hosting.html You don't need the rest of the stuff described on that page. Use sendmail's address test mode (sendmail -bt) to check that the rewriting is occuring as intended. > Here is the sendmail section of /etc/rc.conf: > > ### Mail Transfer Agent (MTA) options ## > ## > > mta_start_script="/etc/rc.sendmail" > # Script to start your chosen MTA, called by /etc/rc. > # Settings for /etc/rc.sendmail: > sendmail_flags="-L sm-mta -bd " # Flags to sendmail (as a server) > sendmail_submit_enable="YES" # Start a localhost-only MTA for mail submission > sendmail_submit_flags="-L sm-mta -bd -ODaemonPortOptions=Addr=localhost" > # Flags for localhost-only MTA > sendmail_outbound_enable="YES"# Dequeue stuck mail (YES/NO). > sendmail_outbound_flags="-L sm-queue -q1m " # Flags to sendmail (outbound only) > sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO). > # sendmail _msp_queue_flags="-L sm-msp-queue -Ac -q30m" > sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q1m " > I don't really understand this at all. I changed the -q1m parts because > I don't want sendmail to wait to send stuff... but I'm not sure if I should > have. Eeek! Don't do that. '-q1m' means "process the queue at a frequency of once per minute", not "wait for a minute before doing anything". Sendmail MSP (Mail Submission Process) will try and send the message immediately (unless you go out of your way to configure it not to do that) -- you haven't mentioned any modifications to freebsd.submit.mc, which probably means you're using the default version. That's good -- it's quite unlikely you'll need to change that at all. If the message cannot be delivered at once, sendmail MSP will deposit i
Re: sendmail help?
On Wed, Jan 21, 2004 at 11:33:57PM -0800, Adam Bozanich wrote: > > Hi all. I am having a really hard time getting sendmail to work for me. > I have a dial up DSL account that gives me an outgoing smtp account that > requires smtp authentication. Judging by the .mc files and so forth you attached, you seem to have gone a long way towards achieving that. You don't mention SASL (Simple Authentication and Security Layer) -- by default, the sendmail on FreeBSD doesn't contain any SASL functionality, but you will need to add it in order to use authentication. First install the security/cyrus-sasl2 port. Then edit your /etc/make.conf to change the sendmail(8) compilation to include linking in the SASL libraries: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 Then rebuild and re-install sendmail from the system sources. Easiest way to do that is to do a complete 'make buildworld, make installworld' cycle as documented in the handbook. Then you need to add the SASL options to your sendmail configuration, as you have done. There are some more detailed instructions here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html (Those instructions actually apply to SASL v1 -- but it works almost identically with the SASL2 settingd as I showed above). See also: http://www.sendmail.org/~ca/email/auth.html but those instructions are for an older version of sendmail, so you'll have to take care to work out what is still applicable. > For now, I'd simply like to be able to send mail from this local machine. > I think the problem I am having is that the "from:" field in emails still > has my local user name, rather than the one required by my isp. That's what the genericstable stuff should fix for you. It's something that generally works really easily, so there's not that much in the way of HOWTOs about. See items 6 and 7 of: http://www.sendmail.org/virtual-hosting.html You don't need the rest of the stuff described on that page. Use sendmail's address test mode (sendmail -bt) to check that the rewriting is occuring as intended. > Here is the sendmail section of /etc/rc.conf: > > ### Mail Transfer Agent (MTA) options ## > ## > > mta_start_script="/etc/rc.sendmail" > # Script to start your chosen MTA, called by /etc/rc. > # Settings for /etc/rc.sendmail: > sendmail_flags="-L sm-mta -bd " # Flags to sendmail (as a server) > sendmail_submit_enable="YES" # Start a localhost-only MTA for mail submission > sendmail_submit_flags="-L sm-mta -bd -ODaemonPortOptions=Addr=localhost" > # Flags for localhost-only MTA > sendmail_outbound_enable="YES"# Dequeue stuck mail (YES/NO). > sendmail_outbound_flags="-L sm-queue -q1m " # Flags to sendmail (outbound only) > sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO). > # sendmail _msp_queue_flags="-L sm-msp-queue -Ac -q30m" > sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q1m " > I don't really understand this at all. I changed the -q1m parts because > I don't want sendmail to wait to send stuff... but I'm not sure if I should > have. Eeek! Don't do that. '-q1m' means "process the queue at a frequency of once per minute", not "wait for a minute before doing anything". Sendmail MSP (Mail Submission Process) will try and send the message immediately (unless you go out of your way to configure it not to do that) -- you haven't mentioned any modifications to freebsd.submit.mc, which probably means you're using the default version. That's good -- it's quite unlikely you'll need to change that at all. If the message cannot be delivered at once, sendmail MSP will deposit it in the queue file for later action. Running the queue once per minute is far too often for a typical home user machine. There's no point in trying to flush the queue too often, as you need to give the intended recipients a chance to fix whatever was wrong. Plus you don't need to copy the defaults out of /etc/defaults/rc.conf wholesale. You can put just the settings you've modified into /etc/rc.conf. > What does sendmail_msp_que do? Do I need it? That's a sendmail process that checks the MSP queue (/var/spool/clientmqueue) and attempts to inject any as yet unprocessed messages into your sendmail MTA (Mail Transport Agent). Yes, you almost definitely need it. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: sendmail help
Hi! > I did a make world and this is what I get at the next reboot. > > Starting standard daemons: inetd cron sshd sendmailsendmail:execing > /usr/local/sbin/sendmail:No such file or directory Ouch! Sounds like somehow the Postfix binary got lost during the upgrade... > > this is my mailer.conf > # > # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail > # > sendmail/usr/local/sbin/sendmail > send-mail /usr/local/sbin/sendmail > mailq /usr/local/sbin/sendmail > newaliases /usr/local/sbin/sendmail > > I originally replaced sendmail with postfix. > and it used to work fine until after the make world. The trick of keeping your postfix alive through the 'make world' procedure is to have NO_SENDMAIL=TRUE in /etc/make.conf and during mergemaster make sure you don't let it replace anything under /etc/mail. > sendmail_enable="YES" > sendmail_flags="-bd" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > sendmail_msp_queue_enable="NO" I have it exactly the same way on my Postfix server. > what can I do to fix this? I would try to re-install the Postfix port. -- Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/ * A woman's husband's previous wife is called her 'wife-in-law.' ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sendmail help
On 0, Kenzo <[EMAIL PROTECTED]> wrote: > I did have NO_SENDMAIL= true in my make.conf file. maybe you did mergemaster and replaced stuff in /etc and /etc/mail? /ayn -- andrew y ng <[EMAIL PROTECTED]> http://andrewng.com independent computer consultants http://aynassociates.com pgp0.pgp Description: PGP signature
Re: sendmail help
On Mon, Mar 31, 2003 at 09:06:51AM -0600, Kenzo wrote: > I did a make world and this is what I get at the next reboot. > > Starting standard daemons: inetd cron sshd sendmailsendmail:execing > /usr/local/sbin/sendmail:No such file or directory looks like your postfix sendmail binary was removed. are the config files in /usr/local/etc/postfix/ also missing? > and reboot, it hangs when it's trying to load the daemons. press CTRL+C, look in the maillog, and try to start postfix manually (postfix start). toni -- Behandle die Menschen, als wären sie, was sie sein | [EMAIL PROTECTED] sollten, und du wirst ihnen helfen, zu werden, was | Toni Schmidbauer sie sein können. - Johann Wolfgang von Goethe | pgp0.pgp Description: PGP signature
Re: sendmail help
> I did a make world and this is what I get at the next reboot. > > Starting standard daemons: inetd cron sshd sendmailsendmail:execing > /usr/local/sbin/sendmail:No such file or directory > > this is my mailer.conf > # > # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail > # > sendmail/usr/local/sbin/sendmail > send-mail /usr/local/sbin/sendmail > mailq /usr/local/sbin/sendmail > newaliases /usr/local/sbin/sendmail I have /usr/libexec/sendmail/sendmail instead. > I originally replaced sendmail with postfix. > and it used to work fine until after the make world. > here is part of my rc.conf. > > sendmail_enable="YES" > sendmail_flags="-bd" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > sendmail_msp_queue_enable="NO" > sshd_enable="YES" > > If I change the mailer.conf file to > sendmail/usr/sbin/sendmail > send-mail /usr/sbin/sendmail > mailq /usr/sbin/sendmail > newaliases /usr/sbin/sendmail > and reboot, it hangs when it's trying to load the daemons. I think the real sendmail is at /usr/libexec/sendmail/sendmail, not /usr/sbin/sendmail, which points to mailwrapper > what can I do to fix this? if you want to continue to use postfix, try re-installing the postfix port, it should fix it. (i haven't used postfix myself, but looks like the pkg-install script would take care of replacing the sendmail setup) if you don't want sendmail to be installed when you do a make world, put the following line in /etc/make.conf: NO_SENDMAIL= true /ayn -- andrew y ng <[EMAIL PROTECTED]> http://andrewng.com independent computer consultants http://aynassociates.com pgp0.pgp Description: PGP signature