LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2012, 05:09 PM   #1
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Rep: Reputation: 0
i can't send mail outside my network


I can send and receive mails locally without problems.
i can't send mail to <any@gmail.com> from my sendmail home server
but i receive mails from <any@gmail.com>
i need to know if sendmail needs other configurations to send mail to the internet, thanks

->I'm using dyndns
->sendmail.mc
Quote:
dnl# This is the a sendmail .mc file for Slackware with TLS support.
dnl# To generate the sendmail.cf file from this (perhaps after making
dnl# some changes), use the m4 files in /usr/share/sendmail/cf like this:
dnl#
dnl# cp sendmail-slackware-tls.mc /usr/share/sendmail/cf/config.mc
dnl# cd /usr/share/sendmail/cf
dnl# sh Build config.mc
dnl#
dnl# You may then install the resulting .cf file:
dnl# cp config.cf /etc/mail/sendmail.cf
dnl#
include(`../m4/cf.m4')
VERSIONID(`TLS supporting setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl#

define(`confDOMAIN_NAME', `idnotcrae.dyndns.org')dnl
FEATURE(`relay_entire_domain')dnl


define('ALIAS_FILE', `/etc/mail/aliases')dnl

dnl# You will need to create the certificates below with OpenSSL first:
define(`confCACERT_PATH', `/etc/mail/certs/')
dnl###define(`confCACERT', `/etc/mail/certs/CA.cert.pem')
dnl###define(`confSERVER_CERT', `/etc/mail/certs/smtp.cert.pem')
dnl###define(`confSERVER_KEY', `/etc/mail/certs/smtp.key.pem')
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
dnl###define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl#define(`SMART_HOST',`out.tedata.net.eg')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
dnl###FEATURE(`use_cw_file')dnl
dnl###FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
FEATURE(`no_default_msa')dnl
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl# Allow SASL authentication/relaying:
dnl###define(`confAUTH_OPTIONS', `A p y')dnl
dnl###define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
dnl###TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
dnl# Daemon options after M= below that might need to be changed are:
dnl# s (allow SSL, not only TLS)
dnl# a (require authentication)
dnl###DAEMON_OPTIONS(`Port=smtps, Name=MSA-SSL, M=Esa')dnl
dnl###LOCAL_CONFIG
dnl# Do not allow the weak SSLv2:
dnl###O CipherList=ALL:!ADH:!NULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LOW:+SSLv3:+TLSv1:-SSLv2:+EXP:+eNULL
 
Old 03-17-2012, 05:56 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by idnotcrae View Post
I can send and receive mails locally without problems.
i can't send mail to <any@gmail.com> from my sendmail home server
but i receive mails from <any@gmail.com>
i need to know if sendmail needs other configurations to send mail to the internet, thanks

->I'm using dyndns
->sendmail.mc
Code:
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl#define(`SMART_HOST',`out.tedata.net.eg')
This is what you need to change. The "Smart Host" should be the SMTP server of your provider.

Eric
 
Old 03-17-2012, 06:35 PM   #3
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
Code:
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl#define(`SMART_HOST',`out.tedata.net.eg')
This is what you need to change. The "Smart Host" should be the SMTP server of your provider.

Eric
I uncommented the SMART HOST line and wrote my provider's SMTP, and did not work too, but after searching i found that my provider's SMTP requires authentication, where in the configurations should i supply the user and password !!
 
Old 03-17-2012, 06:49 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You may find the solution here: http://www.linuxquestions.org/questi...-howto-224543/

Eric
 
Old 03-18-2012, 06:05 AM   #5
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
You may find the solution here: http://www.linuxquestions.org/questi...-howto-224543/

Eric
now it works
thank you it was helpful and simple solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send email to mail server/account on local network? dbrazeau Linux - Networking 2 03-07-2011 11:52 AM
How do I configure sendmail to accept/send mail from outside our network? russmitch Linux - Server 3 12-09-2008 01:11 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
how do I configure sendmail to be able to send mail outside my network dkscomps Linux - Networking 9 07-04-2004 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration