Re: sendmail to a smarthost?
On Mon, Feb 09, 2004 at 11:56:53AM +0800, Zhang Weiwu wrote: Alex de Kruijff wrote: On Sun, Feb 08, 2004 at 09:31:10PM +0800, Zhang Weiwu wrote: Hello. In my LAN the DNS server is my ADSL modem ... small device that cannot do MX type of address lookup. I wish to configure a fax server (FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon receiving fax. The problem is hylafax fax server can only use sendmail to send fax notification, but sendmail can send out emails only when it knows receipiant's MX ip. The only way I can think of is to let sendmail send mails by using my ISP's smtp server (need login). But I read sendmail(8), I didn't find how to configure sendmail to do this, nor did I find such information on the handbook. I'm not familiar with sendmail config. I hope I'm clear:) What should I do now? Do you have something to suggest me to read? Thank you. To create your own sendmail configure file: 1. cd /etc/mail/ 2. make make install 3. vi /etc/mail/hostname.mc This configuration has a example on how to use the SMART_HOST option. I'm not sure about how to login. Then after you have configured it all do: 1. cd /etc/mail/ 2. make make install make restart Yes there is a SMART_HOST option, but where to config the login and sender's address? My ISP restricts both smtp username/password and sender's email address. I just happen to look trougth the handbook (always do this!) to fix one of my own problems and came accross the article about authentication and sendmail. www.freebsd.org/handbook/smtp-auth.html -- Alex ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail to a smarthost?
Zhang Weiwu wrote: Try reading Simon Barner's tutorial on setting up FreeBSD for workstations. http://home.leo.org/~barner/freebsd/articles/mailsetup/article.html Oh this article is really helpful, I'm reading it .. it is really long. But my situation is pertty typical; I believe many people are like me to rely on ISP's authenticated smtp server. Must things be so complicated for those people like me, as said in that article? Isn't there a replacement of sendmail to do simple mail transfer by just asking a smtp server to do everything? Postfix + SASL + TSL/SSL. (There is a nice article on that combination on http://www.postfix.org) When I wrote the article, my goal was to use FreeBSD's base system for as many task as possible. That's why I chose sendmail over postfix. Simon pgp0.pgp Description: PGP signature
Re: sendmail to a smarthost?
Allan Bowhill wrote: On 0, Zhang Weiwu [EMAIL PROTECTED] wrote: :Hello. In my LAN the DNS server is my ADSL modem ... small device that :cannot do MX type of address lookup. I wish to configure a fax server :(FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon :receiving fax. The problem is hylafax fax server can only use sendmail to :send fax notification, but sendmail can send out emails only when it knows :receipiant's MX ip. : :The only way I can think of is to let sendmail send mails by using my ISP's :smtp server (need login). But I read sendmail(8), I didn't find how to :configure sendmail to do this, nor did I find such information on the :handbook. I'm not familiar with sendmail config. : :I hope I'm clear:) What should I do now? Do you have something to suggest :me to read? Thank you. : Try reading Simon Barner's tutorial on setting up FreeBSD for workstations. http://home.leo.org/~barner/freebsd/articles/mailsetup/article.html Oh this article is really helpful, I'm reading it .. it is really long. But my situation is pertty typical; I believe many people are like me to rely on ISP's authenticated smtp server. Must things be so complicated for those people like me, as said in that article? Isn't there a replacement of sendmail to do simple mail transfer by just asking a smtp server to do everything? Thank you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail to a smarthost?
On Mon, Feb 09, 2004 at 11:56:53AM +0800, Zhang Weiwu wrote: Alex de Kruijff wrote: On Sun, Feb 08, 2004 at 09:31:10PM +0800, Zhang Weiwu wrote: Hello. In my LAN the DNS server is my ADSL modem ... small device that cannot do MX type of address lookup. I wish to configure a fax server (FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon receiving fax. The problem is hylafax fax server can only use sendmail to send fax notification, but sendmail can send out emails only when it knows receipiant's MX ip. The only way I can think of is to let sendmail send mails by using my ISP's smtp server (need login). But I read sendmail(8), I didn't find how to configure sendmail to do this, nor did I find such information on the handbook. I'm not familiar with sendmail config. I hope I'm clear:) What should I do now? Do you have something to suggest me to read? Thank you. To create your own sendmail configure file: 1. cd /etc/mail/ 2. make make install 3. vi /etc/mail/hostname.mc This configuration has a example on how to use the SMART_HOST option. I'm not sure about how to login. Then after you have configured it all do: 1. cd /etc/mail/ 2. make make install make restart Yes there is a SMART_HOST option, but where to config the login and sender's address? My ISP restricts both smtp username/password and sender's email address. According to http://www.sendmail.org/~ca/email/auth.html authentication is posible from 8.10. But it is nessesary to install a thirth partie software. This document should help you set it up. Alex ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail to a smarthost?
On Sun, Feb 08, 2004 at 09:31:10PM +0800, Zhang Weiwu wrote: Hello. In my LAN the DNS server is my ADSL modem ... small device that cannot do MX type of address lookup. I wish to configure a fax server (FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon receiving fax. The problem is hylafax fax server can only use sendmail to send fax notification, but sendmail can send out emails only when it knows receipiant's MX ip. The only way I can think of is to let sendmail send mails by using my ISP's smtp server (need login). But I read sendmail(8), I didn't find how to configure sendmail to do this, nor did I find such information on the handbook. I'm not familiar with sendmail config. I hope I'm clear:) What should I do now? Do you have something to suggest me to read? Thank you. To create your own sendmail configure file: 1. cd /etc/mail/ 2. make make install 3. vi /etc/mail/hostname.mc This configuration has a example on how to use the SMART_HOST option. I'm not sure about how to login. Then after you have configured it all do: 1. cd /etc/mail/ 2. make make install make restart The website of sendmail is: www.sendmail.org Good luck, Alex ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendmail to a smarthost?
On Sun, Feb 08, 2004 at 09:31:10PM +0800, Zhang Weiwu wrote: Hello. In my LAN the DNS server is my ADSL modem ... small device that cannot do MX type of address lookup. I wish to configure a fax server (FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon receiving fax. The problem is hylafax fax server can only use sendmail to send fax notification, but sendmail can send out emails only when it knows receipiant's MX ip. The only way I can think of is to let sendmail send mails by using my ISP's smtp server (need login). But I read sendmail(8), I didn't find how to configure sendmail to do this, nor did I find such information on the handbook. I'm not familiar with sendmail config. Setting up a smarthost is simple. Just do the following: # cd /etc/mail # make (this will create a file `hostname`.mc if it doesn't already exist) # vi `hostname`.mc Modify the line to remove the comment (dnl) and put in your ISP's smart host: dnl define(`SMART_HOST', `your.isp.mail.server') so that it reads: define(`SMART_HOST', `smtp.example.com') Note the distinction between the left hand (`) and right hand (') side quote marks. Save the results. Now process those into a sendmail configuration file and install them and restart sendmail as follows: # make install # make restart-mta In order to suppress sendmail doing DNS lookups for MX records, you should be able to use the standard sendmail feature of putting the hostname in [square brackets]. This may or may not work -- you'll have to do some experiments. First of all try putting the square brackets into the SMART_HOST define above: define(`SMART_HOST', `[smtp.example.com]') If that doesn't work, you can try using the mailertable functionality. Create a file /etc/mail/mailertable containing the line: .relay:[smtp.example.com] and process that into a .db format hashed file by: # make -- 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 to a smarthost?
Alex de Kruijff wrote: On Sun, Feb 08, 2004 at 09:31:10PM +0800, Zhang Weiwu wrote: Hello. In my LAN the DNS server is my ADSL modem ... small device that cannot do MX type of address lookup. I wish to configure a fax server (FreeBSD 5.2 + Hylafax) in the LAN to send emails to a group of people upon receiving fax. The problem is hylafax fax server can only use sendmail to send fax notification, but sendmail can send out emails only when it knows receipiant's MX ip. The only way I can think of is to let sendmail send mails by using my ISP's smtp server (need login). But I read sendmail(8), I didn't find how to configure sendmail to do this, nor did I find such information on the handbook. I'm not familiar with sendmail config. I hope I'm clear:) What should I do now? Do you have something to suggest me to read? Thank you. To create your own sendmail configure file: 1. cd /etc/mail/ 2. make make install 3. vi /etc/mail/hostname.mc This configuration has a example on how to use the SMART_HOST option. I'm not sure about how to login. Then after you have configured it all do: 1. cd /etc/mail/ 2. make make install make restart Yes there is a SMART_HOST option, but where to config the login and sender's address? My ISP restricts both smtp username/password and sender's email address. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]