RE: complete rookie sendmail question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Warren Block Sent: Sunday, February 27, 2005 3:26 PM To: Ken Hawkins Cc: freebsd-questions@freebsd.org Subject: Re: complete rookie sendmail question On Sun, 27 Feb 2005, Ken Hawkins wrote: alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/ 014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) Put sendmail_enable=YES in /etc/rc.conf. 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc That's doing things the hard way and might miss things the Makefile will do for you. This is true unless your running a full-blown production mailserver for a company or some such. In that case you had better be sufficiently experienced that the makefile will just get in your way. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
On Feb 27, 2005, at 6:25 PM, Warren Block wrote: On Sun, 27 Feb 2005, Ken Hawkins wrote: alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/ 014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) Put sendmail_enable=YES in /etc/rc.conf. 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc That's doing things the hard way and might miss things the Makefile will do for you. Just: # cd /etc/mail # make 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. Or any mail server you are allowed to smarthost through. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart Should be: 6. make all install restart which combines steps 7 and 8. 6 was already done above. can anyone point me toward what I require to create a domain file for our box name in the /usr/share/sendmail/cf/domain/ area? Let /etc/mail/Makefile help you by using make as shown above. did those steps: 1 cd /etc/mail edited freebsd.mc and changed: 2 make this generated: cp freebsd.mc web1.prosoundweb.com.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 web1.prosoundweb.com.mc web1.prosoundweb.com.cf m4: web1.prosoundweb.com.mc at line 49: include(/usr/share/sendmail/cf/domain/prosoundweb.com.m4): No such file or directory *** Error code 1 this is still looking for a prosoundweb.com.m4 file in the domain area. is there a step I am missing somewhere? I copied generic.m4 to prosoundweb.com.m4 and went through 'make all install restart' and I am still timing out talking to the host: Operation timed out with bhost1.broadjam.net. so obviously I am not done here ken; ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
Apologies for the quick post. I found the domain file issue and i had changed the DOMAIN param in freebsd.mc from generic to prosoundweb.com. switching it back to generic obviously took care of that problem however after opening up the SMART_HOST: define(`SMART_HOST', `bhost1.broadjam.net') I am still timing out which leads me to believe it is a true issue of timing between the servers and NOT improper configuration on the box. If i understand everything now by uncommenting the SMART_HOST define and giving it our true mail server this should relay all mail generated and coming from and coming into the server to the actual mail server yes? I also now only have sendmail_enabl=YES in rc.conf am i way off base here? ken; On Feb 28, 2005, at 10:10 AM, Ken Hawkins wrote: On Feb 27, 2005, at 6:25 PM, Warren Block wrote: On Sun, 27 Feb 2005, Ken Hawkins wrote: alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/ 014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) Put sendmail_enable=YES in /etc/rc.conf. 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc That's doing things the hard way and might miss things the Makefile will do for you. Just: # cd /etc/mail # make 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. Or any mail server you are allowed to smarthost through. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart Should be: 6. make all install restart which combines steps 7 and 8. 6 was already done above. can anyone point me toward what I require to create a domain file for our box name in the /usr/share/sendmail/cf/domain/ area? Let /etc/mail/Makefile help you by using make as shown above. did those steps: 1 cd /etc/mail edited freebsd.mc and changed: 2 make this generated: cp freebsd.mc web1.prosoundweb.com.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 web1.prosoundweb.com.mc web1.prosoundweb.com.cf m4: web1.prosoundweb.com.mc at line 49: include(/usr/share/sendmail/cf/domain/prosoundweb.com.m4): No such file or directory *** Error code 1 this is still looking for a prosoundweb.com.m4 file in the domain area. is there a step I am missing somewhere? I copied generic.m4 to prosoundweb.com.m4 and went through 'make all install restart' and I am still timing out talking to the host: Operation timed out with bhost1.broadjam.net. so obviously I am not done here ken; ___ 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: complete rookie sendmail question
On Mon, 28 Feb 2005, Ken Hawkins wrote: define(`SMART_HOST', `bhost1.broadjam.net') I am still timing out which leads me to believe it is a true issue of timing between the servers and NOT improper configuration on the box. If i understand everything now by uncommenting the SMART_HOST define and giving it our true mail server this should relay all mail generated and coming from and coming into the server to the actual mail server yes? No, all it does is tell your server to send outgoing mail through the smarthost. Where to send incoming mail is decided by the sending system. I also now only have sendmail_enabl=YES in rc.conf sendmail_enable=YES ^ Close. I think your ISP is the next place to ask. They may have some sort of authentication required to smarthost through them. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
thanks for all the help folks! it was a learning experience as always and the last link was a routing problem with the ISP. all is well now and mail is flowing smoothly. thanks again! ken; On Feb 28, 2005, at 7:42 PM, Warren Block wrote: On Mon, 28 Feb 2005, Ken Hawkins wrote: define(`SMART_HOST', `bhost1.broadjam.net') I am still timing out which leads me to believe it is a true issue of timing between the servers and NOT improper configuration on the box. If i understand everything now by uncommenting the SMART_HOST define and giving it our true mail server this should relay all mail generated and coming from and coming into the server to the actual mail server yes? No, all it does is tell your server to send outgoing mail through the smarthost. Where to send incoming mail is decided by the sending system. I also now only have sendmail_enabl=YES in rc.conf sendmail_enable=YES ^ Close. I think your ISP is the next place to ask. They may have some sort of authentication required to smarthost through them. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
Found out it was a firewall issue and that is open now. though my problem has gone from connection refused to: Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: ... delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813, relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed out with bhost1.broadjam.net. is there a timeout that I can set in sendmail to set a longer wait time on this? my flags in my rc.conf are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. I am in a bit of a panic because my mail queue is starting to fill up and I need to get these messages out thanks, ken; On Feb 25, 2005, at 11:11 AM, Giorgos Keramidas wrote: On 2005-02-25 11:03, Ken Hawkins [EMAIL PROTECTED] wrote: first thank you all for the invaluable amount of info and resorses that flow through this mail list.. I hope to one day contribute more than I take away. that said This is what is happening. I have a webserver 'web1.foo.com' that is not the mailserver for foo.com (that is mail.foo.com). /var/log/maillog has errors like: Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1002/1002), delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427, relay=mail.foo.com. [64.73.41.34], dsn=4.0.0, stat=Deferred: Connection refused by mail.foo.com. Is mail.foo.com running an MTA? Does the setup of the MTA, the firewall, whatever else runs on mail.foo.com allow connections from your web1.foo.com host? how can i configure sendmail for send out mail as foo.com and NOT web1.foo.com? is this possible? This is probably a job of the MTA running on mail.foo.com, which should probably have the option: MASQUERADE_AS(`foo.com') MASQUERADE_DOMAIN(`foo.com') If it doesn't already, that is. Handling the masquerading of outgoing email in one central place (the MTA setup of mail.foo.com) is much preferable, since you only have to update ONE place whenever you feel like changing the MASQUERADE_AS option. - Giorgos ___ 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: complete rookie sendmail question
On 2005-02-27 11:44, Ken Hawkins [EMAIL PROTECTED] wrote: Found out it was a firewall issue and that is open now. though my problem has gone from connection refused to: Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: ... delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813, relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed out with bhost1.broadjam.net. is there a timeout that I can set in sendmail to set a longer wait time on this? Something else is wrong now. I can't connect to the SMTP port of bhost1.broadjam.net, so I can't tell if it's down or just refusing my attempt to connect. Are you sure you should be sending outgoing email through that host? my flags in my rc.conf are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. This looks a bit wrong, if you are running a recent release of FreeBSD. The sendmail_enable option is *NOT* going to work with _flags. It is mostly a wrapper around the following: sendmail_submit_enable sendmail_outbound_enable sendmail_msp_queue_enable You should definitely read the manpage of rc.sendmail, before setting Sendmail-related options in your /etc/rc.conf file. Pay very close attention to the section ``RC.CONF VARIABLES''. - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
inline... On Feb 27, 2005, at 3:26 PM, Giorgos Keramidas wrote: On 2005-02-27 11:44, Ken Hawkins [EMAIL PROTECTED] wrote: Found out it was a firewall issue and that is open now. though my problem has gone from connection refused to: Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: ... delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813, relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed out with bhost1.broadjam.net. is there a timeout that I can set in sendmail to set a longer wait time on this? Something else is wrong now. I can't connect to the SMTP port of bhost1.broadjam.net, so I can't tell if it's down or just refusing my attempt to connect. I think it is just refusing your connection attempts. Are you sure you should be sending outgoing email through that host? yes. my flags in my rc.conf are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. This looks a bit wrong, if you are running a recent release of FreeBSD. The sendmail_enable option is *NOT* going to work with _flags. It is mostly a wrapper around the following: sendmail_submit_enable sendmail_outbound_enable sendmail_msp_queue_enable You should definitely read the manpage of rc.sendmail, before setting Sendmail-related options in your /etc/rc.conf file. Pay very close attention to the section ``RC.CONF VARIABLES''. from my man rc.conf: RC.CONF VARIABLES The following variables affect the behavior of rc.sendmail. They are defined in /etc/defaults/rc.conf and can be changed in /etc/rc.conf. sendmail_enable (str) If set to ``YES'', run the sendmail(8) daemon at system boot time. If set to ``NO'', do not run a sendmail(8) daemon to listen for incoming network mail. This does not preclude a sendmail(8) daemon listening on the SMTP port of the loopback interface. The ``NONE'' option is deprecated and should not be used. It will be removed in a future release. sendmail_flags (str) If sendmail_enable is set to ``YES'', these are the flags to pass to the sendmail(8) daemon. and my settings are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. the only thing that I see wrong here is that I do not need the -bd which tells sendmail to run as a daemon since sendmail_enable=YES essentially does this. the other is to process the queue every 30 minutes. am I missing my problem here? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/ 014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart This will configure sendmail to send all non-local mail to the Exchange Server for further processing (eg: to send email to the 'Net). This is essetially what I need to do ('cept ours is not an EXCHANGE server) and if i follow this, put in bhost1.broadjam.net for the SMART_HOST and during make i get an error that it is looking for a domain file: /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 box name.mc box name.cf m4: box name.mc at line 49: include(/usr/share/sendmail/cf/domain/box name.m4): No such file or directory i replaced our host name with box name in the output. can anyone point me toward what I require to create a domain file for our box name in the /usr/share/sendmail/cf/domain/ area? ken; On Feb 27, 2005, at 4:03 PM, Ken Hawkins wrote: inline... On Feb 27, 2005, at 3:26 PM, Giorgos Keramidas wrote: On 2005-02-27 11:44, Ken Hawkins [EMAIL PROTECTED] wrote: Found out it was a firewall issue and that is open now. though my problem has gone from connection refused to: Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: ... delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813, relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed out with bhost1.broadjam.net. is there a timeout that I can set in sendmail to set a longer wait time on this? Something else is wrong now. I can't connect to the SMTP port of bhost1.broadjam.net, so I can't tell if it's down or just refusing my attempt to connect. I think it is just refusing your connection attempts. Are you sure you should be sending outgoing email through that host? yes. my flags in my rc.conf are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. This looks a bit wrong, if you are running a recent release of FreeBSD. The sendmail_enable option is *NOT* going to work with _flags. It is mostly a wrapper around the following: sendmail_submit_enable sendmail_outbound_enable sendmail_msp_queue_enable You should definitely read the manpage of rc.sendmail, before setting Sendmail-related options in your /etc/rc.conf file. Pay very close attention to the section ``RC.CONF VARIABLES''. from my man rc.conf: RC.CONF VARIABLES The following variables affect the behavior of rc.sendmail. They are defined in /etc/defaults/rc.conf and can be changed in /etc/rc.conf. sendmail_enable (str) If set to ``YES'', run the sendmail(8) daemon at system boot time. If set to ``NO'', do not run a sendmail(8) daemon to listen for incoming network mail. This does not preclude a sendmail(8) daemon listening on the SMTP port of the loopback interface. The ``NONE'' option is deprecated and should not be used. It will be removed in a future release. sendmail_flags (str) If sendmail_enable is set to ``YES'', these are the flags to pass to the sendmail(8) daemon. and my settings are: sendmail_enable=YES sendmail_flags=-bd -q30m # -bd is pretty mandatory. the only thing that I see wrong here is that I do not need the -bd which tells sendmail to run as a daemon since sendmail_enable=YES essentially does this. the other is to process the queue every 30 minutes. am I missing my problem here? ___ 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: complete rookie sendmail question
On Sun, 27 Feb 2005, Ken Hawkins wrote: alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) Put sendmail_enable=YES in /etc/rc.conf. 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc That's doing things the hard way and might miss things the Makefile will do for you. Just: # cd /etc/mail # make 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. Or any mail server you are allowed to smarthost through. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart Should be: 6. make all install restart which combines steps 7 and 8. 6 was already done above. can anyone point me toward what I require to create a domain file for our box name in the /usr/share/sendmail/cf/domain/ area? Let /etc/mail/Makefile help you by using make as shown above. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
complete rookie sendmail question
first thank you all for the invaluable amount of info and resorses that flow through this mail list.. I hope to one day contribute more than I take away. that said This is what is happening. I have a webserver 'web1.foo.com' that is not the mailserver for foo.com (that is mail.foo.com). /var/log/maillog has errors like: Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1002/1002), delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427, relay=mail.foo.com. [64.73.41.34], dsn=4.0.0, stat=Deferred: Connection refused by mail.foo.com. as well I am seeing: Feb 25 00:10:56 web1 sm-mta[88984]: j1P1HLV8081785: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (80/80), delay=04:53:35, xd elay=00:00:06, mailer=esmtp, pri=930762, relay=somedomain.com. [216.166.63.26], dsn=4.0.0, stat=Deferred: 451 4.1.8 Domain of sender addre ss [EMAIL PROTECTED] does not resolve I beleive this is because the ctladdr should be [EMAIL PROTECTED] and not [EMAIL PROTECTED] how can i configure sendmail for send out mail as foo.com and NOT web1.foo.com? is this possible? am I barking up the wrong tree here to find out why I am not able to send mail out... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: complete rookie sendmail question
On 2005-02-25 11:03, Ken Hawkins [EMAIL PROTECTED] wrote: first thank you all for the invaluable amount of info and resorses that flow through this mail list.. I hope to one day contribute more than I take away. that said This is what is happening. I have a webserver 'web1.foo.com' that is not the mailserver for foo.com (that is mail.foo.com). /var/log/maillog has errors like: Feb 25 07:34:09 web1 sm-mta[98913]: j1PDTdTd098790: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1002/1002), delay=00:04:30, xdelay=00:00:00, mailer=esmtp, pri=120427, relay=mail.foo.com. [64.73.41.34], dsn=4.0.0, stat=Deferred: Connection refused by mail.foo.com. Is mail.foo.com running an MTA? Does the setup of the MTA, the firewall, whatever else runs on mail.foo.com allow connections from your web1.foo.com host? how can i configure sendmail for send out mail as foo.com and NOT web1.foo.com? is this possible? This is probably a job of the MTA running on mail.foo.com, which should probably have the option: MASQUERADE_AS(`foo.com') MASQUERADE_DOMAIN(`foo.com') If it doesn't already, that is. Handling the masquerading of outgoing email in one central place (the MTA setup of mail.foo.com) is much preferable, since you only have to update ONE place whenever you feel like changing the MASQUERADE_AS option. - Giorgos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]