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
MAILER.CONF(5)						      BSD File Formats Manual						    MAILER.CONF(5)

NAME
mailer.conf -- configuration file for mailwrapper(8) DESCRIPTION
The file /etc/mailer.conf contains a series of lines of the form name program [arguments ...] The first word of each line is the name of a program invoking mailwrapper(8). (For example, on a typical system /usr/sbin/sendmail would be a symbolic link to mailwrapper(8), as would newaliases(1) and mailq(1). Thus, name might be ``sendmail'' or ``newaliases'' etc.) The second word of each line is the name of the program to actually execute when the first name is invoked. The further arguments, if any, are passed to the program, followed by the arguments mailwrapper(8) was called with. The file may also contain comment lines, denoted by a '#' mark in the first column of any line. The default mailer is postfix(1), which will also start by default (unless specifically disabled via an rc.conf(5) setting) so that locally generated mail can be delivered, if the ``sendmail'' setting in /etc/mailer.conf is set to ``/usr/libexec/postfix/sendmail''. FILES
/etc/mailer.conf EXAMPLES
This example shows how to set up mailer.conf to invoke the postfix(1) program: sendmail /usr/libexec/postfix/sendmail mailq /usr/libexec/postfix/sendmail newaliases /usr/libexec/postfix/sendmail This example shows the use of the mini-sendmail package from pkgsrc in place of postfix(1): # Send outgoing mail to a smart relay using mini-sendmail sendmail /usr/pkg/sbin/mini-sendmail -srelayhost send-mail /usr/pkg/sbin/mini-sendmail -srelayhost Note the use of additional arguments. SEE ALSO
mail(1), mailq(1), newaliases(1), postfix(1), mailwrapper(8) pkgsrc/mail/sendmail, pkgsrc/mail/mini_sendmail HISTORY
mailer.conf appeared in NetBSD 1.4. AUTHORS
Perry E. Metzger <perry@piermont.com> BUGS
The entire reason this program exists is a crock. Instead, a command for how to submit mail should be standardized, and all the ``behave differently if invoked with a different name'' behavior of things like mailq(1) should go away. BSD
April 10, 2010 BSD
All times are GMT -4. The time now is 12:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy