Re: can't send email from my box.

From: Matthew Emmerton (matt_at_gsicomp.on.ca)
Date: 06/26/03

  • Next message: Joshua Oreman: "Re: Questions about bootable raid 1 using atacontrol."
    To: "Supote Leelasupphakorn" <pjn0211@yahoo.com>, <freebsd-questions@freebsd.org>
    Date: Thu, 26 Jun 2003 00:24:35 -0400
    
    

    > Hi, all
    >
    > I have tried below
    >
    > echo "this is my testing email" | mail -s "1st mail" me@mydomain.com
    >
    > but no luck. /var/log/maillog show me that
    >
    > to=me@mydomain.com, ctladdr=pjn (1001/1001), delay=00:00:00,
    xdelay=00:00:00,
    > mailer=relay, pri=30040, relay=localhost.mytestdomain.com [127.0.0.1],
    > dsn=4.0.0, stat=Deferred: Connection refused by localhost.mytestdomain.com
    >
    > My question are
    > 1. Is it possible for sending emails from the host that hasn't run
    "sendmail"
    > on it.
    > 2. It seem "mail" try to connect SMTP on localhost.mytestdomain.com. If I
    want
    > "mail" connect to SMTP on the remote host (@mydomain.com's mail server),
    or
    > say I want to change my "outgoing mail host". How can I do this ?
    >
    > Thanks in advance,

    1) You will need to set up sendmail as "submit-only" on your box. Look at
    /etc/mail/freebsd.submit.mc and "man rc.sendmail"
    2) You need to set up sendmail to use another mail server instead of
    localhost. This is set using the "SMART_HOST" option in freebsd.submit.mc;
    check http://www.sendmail.org for documentation on how to set this.

    --
    Matt Emmerton
    Take a look at "SMART_HOST" in /etc/mail/freebsd.mc
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Joshua Oreman: "Re: Questions about bootable raid 1 using atacontrol."

    Relevant Pages

    • Re: pop wont authenticate my password
      ... On Tue, 2004-01-20 at 18:29, Stuart Sears wrote: ... >> to the local host. ... > If it is it is certainly not solely sendmail which is at fault. ... > cannot find YOUR mail server on the internet. ...
      (RedHat)
    • Re: pop wont authenticate my password
      ... > to the local host. ... I'm not sure this is a sendmail issue at all. ... cannot find YOUR mail server on the internet. ... it will only accept mail for delivery from localhost - this ...
      (RedHat)
    • Re: Mail going to wrong server
      ... The firewall needs to be able to send messages, ... sendmail running on the firewall. ... the firewall and not to the mail server. ... Sendmail keeps a list of host names that are considered to be local. ...
      (comp.mail.sendmail)
    • error 551 unable to relay (local user)
      ... I am sending emails from within our local network (so not trying to ... smtp;551 This is not a relay host - mail must be to ... Tried telnetting to our mail server and manually sending the email. ...
      (microsoft.public.exchange2000.admin)
    • Re: [SLE] HELP: sendmail will not get right ip, hostname not found! cache?
      ... I even put vginc.net into my host file to point to 69.93.189.34 and it still doesn't work. ... :(I also have another mail server (this one) that i use personally and that works fine. ... saying hostname not found. ... When sending the email, sendmail ...
      (SuSE)