Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can have mails from outside domains, but i can't send mails between
users. Each time i try, I'm having problems with my mail server giving me this message
Feb 24 19:30:49 4-bss sendmail[9546]: j1OBOVDi009546: to=admin@singying.dyndns.org, ctladdr=apache (74/74), delay=00:06:18, xdelay=00:06:18, mailer=relay, pri=30625, relay=localhost.com. [10.11.12.13], dsn=4.0.0, stat=Deferred: Connection timed out with localhost.com.
Does anyone know what is going on?
It seems that sendmail looks for localhost.com but it's not written in
any config file...
I have the same case with php script and apache: sendmail has
relay=localhost.com <- but same not use.
I don't need to send mails outside, but I must send mails on intranet.
What's wrong??
It started a while back...and my logs have just gotten huge, I've also noticed that I'm not receiving any of my reports can this be the culprit?
Originally posted by singying304 does any one help? I have looked all over the interweb and have noticed that its just a glitch that noone knows how to fix or explain
your problem is "localhost.com". What is the name of your machine? Have you specified this name anywhere?
could you post your sendmail.cf file. if i understand your set up this machine is handling smtp and pop services on a private network with no need to forward to another machine on port 25. if so then it should not be trying to relay. post your file and we will have a look. only the top of the file to where message rewriting begins is pertinent.
##### $Id: proto.m4,v 8.649.2.30 2004/01/11 17:54:06 ca Exp $ #####
# level 10 config file format
V10/Berkeley
# override file safeties - setting this option compromises system security,
# addressing the actual file configuration problem is preferred
# need to set this before any file actions are encountered in the cf file
#O DontBlameSendmail=safe
# default LDAP map specification
# need to set this now before any LDAP maps are defined
#O LDAPDefaultSpec=-h localhost
##################
# local info #
##################
# my LDAP cluster
# need to set this before any LDAP lookups are done (including classes)
#D{sendmailMTACluster}$m
Cwlocalhost
# file containing names of hosts for which we receive email
Fw/etc/mail/local-host-names
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
# host/domain names ending with a token in class P are canonical
CP.
# "Smart" relay host (may be null)
DS
# operators that cannot be in local usernames (i.e., network indicators)
CO @ % !
# a class with just dot (for identifying canonical names)
C..
# a class with just a left bracket (for identifying domain literals)
C[[
# access_db acceptance class
C{Accept}OK RELAY
# possible access_db RHS for spam friends/haters
C{SpamTag}SPAMFRIEND SPAMHATER
# Resolve map (to check if a host exists in check_mail)
Kresolve host -a<OKR> -T<TEMP>
C{ResOk}OKR
# Hosts for which relaying is permitted ($=R)
FR-o /etc/mail/relay-domains
# arithmetic map
Karith arith
# macro storage map
Kmacro macro
# possible values for TLS_connection in access map
C{tls}VERIFY ENCR
# dequoting map
Kdequote dequote
# class E: names that should be exposed as from this host, even if we masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
# class N: domains that should not be converted to $M
#CL root
C{TrustAuthMech}LOGIN PLAIN
# who I masquerade as (null for no masquerading) (see also $=M)
DMlocalhost.localdomain
# time for DeliverBy; extension disabled if less than 0
#O DeliverByMin=0
# should we not prune routes in route-addr syntax addresses?
#O DontPruneRoutes=False
# queue up everything before forking?
O SuperSafe=True
# status file
O StatusFile=/etc/mail/statistics
# time zone handling:
# if undefined, use system default
# if defined but null, use TZ envariable passed in
# if defined and non-null, use that info
#O TimeZoneSpec=
# default UID (can be username or userid:groupid)
O DefaultUser=mail:mail
# list of locations of user database file (null means no lookup)
#O UserDatabaseSpec=/etc/mail/userdb
# Trusted user for file ownership and starting the daemon
#O TrustedUser=root
# Control socket for daemon management
#O ControlSocketName=/var/spool/mqueue/.control
# Maximum MIME header length to protect MUAs
#O MaxMimeHeaderLength=2048/1024
# Maximum length of the sum of all headers
#O MaxHeadersLength=32768
# Maximum depth of alias recursion
#O MaxAliasRecursion=10
# location of pid file
#O PidFile=/var/run/sendmail.pid
# Prefix string for the process title shown on 'ps' listings
#O ProcessTitlePrefix=prefix
# Data file (df) memory-buffer file maximum size
#O DataFileBufferSize=4096
# Transcript file (xf) memory-buffer file maximum size
#O XscriptFileBufferSize=4096
# lookup type to find information about local mailboxes
#O MailboxDatabase=pw
# list of authentication mechanisms
O AuthMechanisms=LOGIN PLAIN
# default authentication information for outgoing connections
#O DefaultAuthInfo=/etc/mail/default-auth-info
# SMTP AUTH flags
O AuthOptions=A p y
# SMTP AUTH maximum encryption strength
#O AuthMaxBits
# SMTP STARTTLS server options
#O TLSSrvOptions
# Input mail filters
#O InputMailFilters
# CA directory
O CACertPath=/etc/ssl/sendmail
# CA file
O CACertFile=/etc/ssl/sendmail/CAcert.pem
# Server Cert
O ServerCertFile=/etc/ssl/sendmail/MYcert.pem
# Server private key
O ServerKeyFile=/etc/ssl/sendmail/MYkey.pem
# Client Cert
O ClientCertFile=/etc/ssl/sendmail/MYcert.pem
# Client private key
O ClientKeyFile=/etc/ssl/sendmail/MYkey.pem
# DHParameters (only required if DSA/DH is used)
#O DHParameters
# Random data source (required for systems without /dev/urandom under OpenSSL)
#O RandFile
############################
# QUEUE GROUP DEFINITIONS #
############################
the localhost directive on your access file will take care of the sendmail server. if your local clients are going to be able to relay on this server they will have to be added to /etc/mail/access as well. are your making the access.db by makemap hash < access access.db
you are also using authentication that is possibly not necessary since port 25 (i assume) is not available to the internet. i would keep is simple until you get it working and then add ssl if needed. how is mail going to be accessed by clients (imap, pop)?
definately add your local net to access, makemap and restart
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.