Sponsored Content
Full Discussion: Configure sendmail with SMTP
Operating Systems Solaris Configure sendmail with SMTP Post 303019370 by d4rkm4nx99 on Thursday 28th of June 2018 05:44:40 AM
Old 06-28-2018
Configure sendmail with SMTP

Hello,

I'm trying to configure sendmail with SMTP authentication on a SunOS 5.11 operating system. I have been read various documentation / tutorials and unfortunately is not working. I need help from someone who has configured smtp on this operating system.

When I try to send a mail, I have the following error:
Code:
The following addresses had permanent fatal errors -----
<username&test.com>

----- Transcript of session follows -----
550 5.1.2 <username&test.com>... Host unknown (Name server: mailhost.localhost.localhost.com: host not found)



--w5RL4kWQ029892.1530133486/localhost.localhost.com
Content-Type: message/delivery-status

Reporting-MTA: dns; localhost.localhost.com
Received-From-MTA: DNS; localhost
Arrival-Date: Thu, 28 Jun 2018 00:04:46 +0300 (EEST)

Final-Recipient: RFC822; username&test.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; mailhost.localhost.localhost.com
Last-Attempt-Date: Thu, 28 Jun 2018 00:04:46 +0300 (EEST)

--w5RL4kWQ029892.1530133486/localhost.localhost.com

I've looked into the sendmail configuration files to change host mailhost.localhost.localhost.com with my smtp server, but it does not exist.

In /etc/mail/sendmail.cf to the line
Code:
# "Smart" relay host (may be null)
DS

... where is DS we put the smtp server, I restarted the services and unfortunately the hostname does not change.

Thanks in advance.

Last edited by rbatte1; 06-28-2018 at 10:55 AM.. Reason: Added CODE tags and tidied formatting.
 

10 More Discussions You Might Find Interesting

1. IP Networking

SMTP with sendmail

Hi, I have a solaris 9 box, and 2 domains A.com and B.net. the machine is on B.net. I am not able to send emails to @A.com using mail or mailx. after reading on sendmail, there was something about relaying and editing the file /etc/mail/relay-domains. Please let me know if this is what i... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

2. Solaris

Sendmail & SMTP

I have searched this forum extensively and can't seem to find a workable solution to my sendmail issue, but that could be down to my own lack of knowledge so please bear with me... I am using a Sun Solaris 9 box to try and send e-mail to external addresses. The Unix box is not an e-mail server.... (9 Replies)
Discussion started by: KenLynch
9 Replies

3. Solaris

Enabling sendmail with SMTP

Hi all, I want to send mails through Sendmail using SMTP server, Pls how to set that A.S.A.P. Regards (2 Replies)
Discussion started by: adel8483
2 Replies

4. UNIX for Advanced & Expert Users

Configure SMTP Server for Unix

Hi, We had an upgrade today morning and since then mailx command is not working. I have been told to change the DNS to use host name as smtp.companyname.com instead of the IP address. Can someone please help me out to know where can I change this on a Unix Server. Thanks Aman (5 Replies)
Discussion started by: chawlaaman
5 Replies

5. SCO

SCO 5.0.7 Sendmail. Need help on how to configure SMTP

Did anyone know or can provide some instructions on how to setup smtp for sendmail. All I need to do is email files from sco thru my ISP smtp provider. please help (3 Replies)
Discussion started by: miles556
3 Replies

6. UNIX for Advanced & Expert Users

How to configure Linux box with my SMTP mail server

Hi all, I need to send mail to a particular email id using a local mail server.This mail shall contain the content of a file. I don't have any idea how to do it. Can anyone guide me ,where to start proceeding for it. Any guide or study material would appreciated. (1 Reply)
Discussion started by: amit_kv1983
1 Replies

7. IP Networking

Configure router to allow smtp traffic

Hello all, I have installed ubuntu hardy and for some testing I have configured sendmail on it. I have a router facing the internet and I am having hard time configuring the router to allow traffic on port 25 to my server. I have a BCM96338 ADSL Router. I have set iptable rules to allow the... (0 Replies)
Discussion started by: h3llh0l3
0 Replies

8. UNIX for Dummies Questions & Answers

Sendmail? Mailx? SMTP?

We require e-mails to come from one of our Solaris 10 boxes ASAP and have found that when using such things as Sendmail and Mailx all the mail goes to a Q that only fires every 15 minutes. We have tried everything we could think of to adjust this to force the Q to go every 1 minute but so far no... (3 Replies)
Discussion started by: LRoberts
3 Replies

9. Linux

Configure SMTP service in linux 5.2

Hi All, How to configure SMTP service in linux 5.2? Please provide me the steps. Thanks Jack (5 Replies)
Discussion started by: jack00423
5 Replies

10. UNIX for Dummies Questions & Answers

Can't configure sendmail to send mails to external SMTP Server

Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies
SENDMAILCONFIG(8)					      System Manager's Manual						 SENDMAILCONFIG(8)

NAME
sendmailconfig - configure sendmail for Debian systems SYNOPSIS
sendmailconfig [--no-reload] DESCRIPTION
sendmailconfig is used to simplify the configuration of sendmail(8) for use on Debian systems. In the simplest case, you may run this program to (re)configure sendmail for your Debian system at any time. It will modify the file /etc/mail/sendmail.mc in order to create a working sendmail configuration which will be written to the file /etc/mail/sendmail.cf. For advanced configurations, you can modify the sendmail.mc file before generating sendmail.cf. Future invokations of sendmailconfig will preserve these changes provided they are made at the end of the file. Normally sendmailconfig will ask if you want to reload sendmail after making changes to its configuration. The --no-reload option will avoid this question. FILES
/etc/mail/sendmail.mc sendmail m4 input to generate sendmail.cf /etc/mail/sendmail.cf actual sendmail configuration file /etc/mail/sendmail.cw names for which we will accept mail in the standard configuration /etc/mail/sendmail.ct names of trusted users in the standard configuration SEE ALSO
sendmail(8) AUTHOR
Robert Leslie <rob@mars.org> 21-Jan-1997 SENDMAILCONFIG(8)
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy