Configure sendmail with SMTP


 
Thread Tools Search this Thread
Operating Systems Solaris Configure sendmail with SMTP
# 1  
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.
# 2  
Old 06-28-2018
Can you show us the command you are using to send the mail? (The actual command, not a call to a script that has it embedded)

The output might suggest that you are trying to write to username&test.com and perhaps that should be username@test.com

It might be that simple, but if you can show us, then we will be better placed to help.




Kind regards,
Robin
# 3  
Old 06-29-2018
@rbatte1

Thank you for your answer.

To send emails i am using the command sendmail & mailx echo "This is the test message" | sendmail -v -r "test@localhost.com" username@test.com
As you can see the error message, don't have anything to do whit the email address. (Name server: mailhost.localhost.localhost.com: host not found)

I put my self & becose forum wont let me put @ and cant open a new thread.

---------- Post updated at 12:55 AM ---------- Previous update was at 12:55 AM ----------
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question