Sponsored Content
Full Discussion: SMTP Server Configuration
Top Forums Web Development SMTP Server Configuration Post 302980475 by landossa on Sunday 28th of August 2016 07:43:38 PM
Old 08-28-2016
Wrench SMTP Server Configuration

Hello list,

I want to be able to send email directly from my linux box. I have both a CentOS and Debian installation. I am by no means an expert when it comes to all of the SMTP servers. I have been testing different configs by installing and uninstalling sendmail, postfix, and exim4.

Network: My servers all sit behind NAT with a private IP address and they are not resolvable from the internet.

Requirement: I want to be able to send emails directly from the SMTP service without having to rely on an SMTP smarthost such as google. This is a "send only" requirement.

In my testing, the only configuration I was able to get to send outbound email was through my "paid for" Google SMTP smarthost. And even then I was unable to send email to domains outside of Gmail from my linux box. And I want to avoid relying on an SMTP smarthost.

I have used mutt/mail before with exim and others before without any prior configuration. But just my luck, when I want it to work it just doesn't work at all.

Has anyone got a working config for any of the email servers or a recommendation on what I should configure, or anything I am doing wrong. I have using the following basic guide and googling for solutions:

How To Install and Configure Postfix as a Send-Only SMTP Server on Ubuntu 14.04 | DigitalOcean

There are two distinct errors, one of which is this one:

Code:
smtp[29216]: B302E4077585D: to=<email@example.com>, relay=none, delay=15561, delays=15560/0.03/0.1/0, dsn=4.3.5, status=deferred (mail for localhost loops back to myself)

In another configuration, the error tells me something like "A fully qualified is required" (sorry I don't have access to this error to post right now, but can post later)

The command I am using is the following, but I have also tried with "mail." Although I'm sure this has nothing to do with the command I am using. The same errors in the log occur what ever variation of the command I use.

Code:
mutt email@example.com -s "Subject" < body.txt

As always, this has to be something really simple!
Thanks!
Smilie
Ll
 

10 More Discussions You Might Find Interesting

1. Solaris

SMTP server-denied

im running Solaris9. sendmail version 8.13 every now and then my smtp server is being blacklisted resulting to relay denied to some of my client. what is the very first thing i have to implement? thanks (1 Reply)
Discussion started by: uwagon
1 Replies

2. Solaris

SMTP Configuration

Hello everyone, I've got this Java script which needs to know the SMTP host in order to send out mails from a particular mail ID. But I have no idea how or what to configure in SMTP for getting this code up and running.(All I know is SMTP=Simple Mail Transfer Protocol). I'm using Solaris 5.8.... (1 Reply)
Discussion started by: Rajat
1 Replies

3. AIX

AIX 6.1 SMTP Server ?

Hello, Looking for Document how to install / configure SMTP Server on AIX 6.1 is it through smitty menu ? (3 Replies)
Discussion started by: filosophizer
3 Replies

4. Shell Programming and Scripting

Send email from sendmail on AIX using exchange server as SMTP server

i am new in AIX i am trying to write a script to take a backup for specific files on server to and check error log if backup success send email to administrator , script done except for sending mail , i try to configure sendmail on aix to use our exchange server to send emails but still get error... (0 Replies)
Discussion started by: ahmed_salah
0 Replies

5. AIX

SMTP Server errors

Hey everyone, I have an issue where email is working fine in our Windows environments but is blowing up in our AIX environments. Here is the related functions that are getting called: int get_smtp_line( void ) { char ch = '.'; char in_data ; char * index; int retval = 0; ... (4 Replies)
Discussion started by: ctote
4 Replies

6. UNIX for Dummies Questions & Answers

Emailing from a hudson job - smtp configuration

Hello everyone, I'm trying to send an email from a Hudson (integration server) job but the error below happens: Sending e-mails to: xxxxxx ERROR: smtp javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:782) at... (0 Replies)
Discussion started by: Aurea
0 Replies

7. Ubuntu

Any way we can create an SMTP server and use any scripting language to read emails from that server

Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically? (3 Replies)
Discussion started by: sandeepcm
3 Replies

8. UNIX for Dummies Questions & Answers

Postfix as smtp server

hi guys I have to configure a SMTP server using Postfix, ok let me tell the domain is located at godaddy so my smtp postfix server has to use that domain let's say mycompany.com so anyone knows how to configure postfix using this way? or postfix is easy to configure? thanks a lot (3 Replies)
Discussion started by: karlochacon
3 Replies

9. Solaris

.muttrc configuration for smtp

Hi, I need to configure .muttrc for an internal smtp server. Scenario is that i want to send an email to an external email address (i.e. hotmail or gmail etc) with mutt from solaris sparc server. the server has connectivity to an internal smtp server but i am enable to configure .muttrc file.... (3 Replies)
Discussion started by: adeel
3 Replies

10. Red Hat

External SMTP server

Hi, We current use an email/hosted exchange server (provided by 3rd party company). Our production DNS (RH5) server has got the MX rec configured for this 3rd party mail relay server. So in order to resolve hostnames to send outbound mails an A record entry is also required on the external... (1 Reply)
Discussion started by: Duffs22
1 Replies
smtp(n) 							    smtp client 							   smtp(n)

NAME
smtp - Client-side tcl implementation of the smtp protocol SYNOPSIS
package require Tcl package require mime ?1.3.2? package require smtp ?1.3.2? ::smtp::sendmessage token option... DESCRIPTION
The smtp library package provides the client side of the smtp protocol. ::smtp::sendmessage token option... This command sends the MIME part (see package mime) represented by token to an SMTP server. options is a list of options and their associated values. The recognized options are: -servers A list of SMTP servers. The default is localhost. -ports A list of SMTP ports. The default is 25. -queue Indicates that the SMTP server should be asked to queue the message for later processing. A boolean value. -atleastone Indicates that the SMTP server must find at least one recipient acceptable for the message to be sent. A boolean value. -originator A string containing an 822-style address specification. If present the header isn't examined for an originator address. -recipients A string containing one or more 822-style address specifications. If present the header isn't examined for recipient addresses). If the string contains more than one address they will be separated by commas. -header A list of keywords and their values (may occur zero or more times). If the -originator option is not present, the originator address is taken from From (or Resent-From); similarly, if the -recipients option is not present, recipient addresses are taken from To, cc, and Bcc (or Resent-To, and so on). Note that the header key/values supplied by the -header option (not those present in the MIME part) are consulted. Regardless, header key/values are added to the outgoing message as necessary to ensure that a valid 822-style message is sent. The command returns a list indicating which recipients were unacceptable to the SMTP server. Each element of the list is another list, con- taining the address, an SMTP error code, and a textual diagnostic. Depending on the -atleastone option and the intended recipients, a non- empty list may still indicate that the message was accepted by the server. SEE ALSO
mime, pop3, ftp, http KEYWORDS
mail, mail, email, smtp, mime, rfc821, rfc822, internet, net mime 1.3.2 smtp(n)
All times are GMT -4. The time now is 11:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy