Good day all I'm just wondering for interest sake I have a box,hostname=myname.co.za,running sendmail If I send mail to someuser@myname.co.za it try to deliver to the box,witch does not have the mail box.How do I tell sendmail that it should send mail to myname.co.za's mailserver. I know how easy it is to change the name but there's a lot of reasons why we can.It is not in the local-hostnames file either. Thanks Altus
get a book on DNS andlookup MX records or look on yolinux for a tutorial Altus Snyman wrote:> Good day all > I'm just wondering for interest sake > I have a box,hostname=myname.co.za,running sendmail > If I send mail to someuser@myname.co.za it try to deliver to the box,witch > does not have the mail box.How do I tell sendmail that it should send mail to > myname.co.za's mailserver. > I know how easy it is to change the name but there's a lot of reasons why we > can.It is not in the local-hostnames file either. > Thanks > Altus > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hello, On Wed, 8 Sep 2004 13:10:48 +0200, Altus Snyman <altus@stormcorp.co.za> wrote:> Good day all > I'm just wondering for interest sake > I have a box,hostname=myname.co.za,running sendmail > If I send mail to someuser@myname.co.za it try to deliver to the box,witch > does not have the mail box.How do I tell sendmail that it should send mail to > myname.co.za 's mailserver. > I know how easy it is to change the name but there's a lot of reasons why we > can.It is not in the local-hostnames file either. > Thanks > AltusIf your machine will never receive local mail, you can setup a 'SMART HOST' in sendmail, then, all mail will be relayed through that host. If you use redhat/fedora, you can add the smart host file in: /etc/mail/sendmail.mc just add the line: define(`SMART_HOST',`your.smtp.relay.server.or.ip.address')dnl Then you have to generate the /etc/sendmail/sendmail.cf with the command m4 < /etc/mail/sendmail.mc > /etc/mail/sendmail.cf Restart sendmail and you are done. Just backup sendmail.cf firts just in case something goes wrong. Best regards, -- Nicol?s Gudi?o Buenos Aires - Argentina
On Wednesday 08 September 2004 12:10, Altus Snyman wrote:> Good day all > I'm just wondering for interest sake > I have a box,hostname=myname.co.za,running sendmail > If I send mail to someuser@myname.co.za it try to deliver to the box,witch > does not have the mail box.How do I tell sendmail that it should send mail > to myname.co.za's mailserver. > I know how easy it is to change the name but there's a lot of reasons why > we can.It is not in the local-hostnames file either. > Thanks > AltusI can't remember the exact m4 command but your looking for something that does something like - assume local is best - then remove whatever sets that. Jon