how to configure sendmail to just send emails. no recieving.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to configure sendmail to just send emails. no recieving.
hi. i want to use the php to send emails via the function mail. this require configured mail server. i don't know how to configure the mail server. i choosed sendmail because it comes with the fedora package. i don't want full configuration (i don't want to recieve emails, just sending it), just the minimum to enable email sending.i couldn't understand the sendmail configuration.can you explain the configuration simply to me. i am not just new to servers stuff. iam new to linux.
the another question. does the sendmail support attachement (s/MIME).
(forgive my horrible english)
The default configurations will do this for your local machine. If you don't want to receive email, don't open the service up to anything which could send email to you in the first place. if you want your system to relay email from other machines on your LAN you should just need to comment out a line reading "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl" in the sendmail.mc file. other than that there's nothing to do. Note that "sending" and "receiving" are actually the same thing really, the two parts of a relay. if you want to send mail out to the net, then sendmail still has to receive a mail in the first place to forward it on somewhere.
thanks. but i have tried to send mails to my accounts in yahoo, google and hotmails and non of them received any message. the log messages show that the messages has been accepted for sending, but non of them received? what is the problem?
thanks. but i have tried to send mails to my accounts in yahoo, google and hotmails and non of them received any message. the log messages show that the messages has been accepted for sending, but non of them received? what is the problem?
I would check in this order:
1) Are you the MX for your domain? If not some servers will dump you as a spammer.
2) If yes on 1), are you set up with a reverse lookup (nslookup <your IP> -> <your domain>)? See above answer.
95% of your problems will be handled by the above. Especially to a major email host such as hotmail, gmail or yahoo.
Last edited by Ghostwheel; 03-31-2009 at 01:56 PM.
if you are doing this on a home broadband line your ISP will probably have a mail relay you need to send all mail via in order to make it look respectable to other mail servers online. mail.myisp.com, smtp.myisp.net etc...
hi. i am trying to send mails using internet connection as you guessed, (idon't have a sitedomain yet). so you mean that i can't send mails unless that i have an a domain.
i managed to send mails to my lan members :-)
i don't know how to used these sites (smtp.myisp.net or mail.myisp.com) where should i put those adresses in sendmail.mc
thanks in advanced
i am sorry. i sent my self messages on my device using other device as the dns server. (the device act as the sender and the reciever at the same time), i thought that i can send the messages over the lan. but i couldn't
what is the problem?
i have commented the line as you said
i have just figured out that i was wrong. no message delivered using other domain name? why? i think the DNS configuration works well?
here is message i get when sinding using message using the commmand
# send mail -v khalid@my-site.com (my-site is my domain name in the lan. no internet connection)
Quote:
[root@localhost ~]# sendmail -v khalid@my-site.com.
this is the first message for me
. khalid@my-site.com.... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.2/8.14.2; Fri, 3 Apr 2009 20:47:32 +0300
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=33 AUTH=root@localhost.localdomain
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<khalid@my-site.com>
>>> DATA
250 2.1.5 <khalid@my-site.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n33HlWO2018703 Message accepted for delivery khalid@my-site.com.... Sent (n33HlWO2018703 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.