Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
not sure if this is a newb question or not but i got a slight problem... posted it in the software forum before i realised it was wrong place...
FC1 running apache php and mySQL (Xampp install)
running Gallery2 software for displaying some photo's i've taken
the system can have registered users... i.e. send email for reqgistration
that is where the smtp server comes in...
by default gallery2 uses some sending thing in php and it doesn't seem to work...
so i've tried setting up sendmail... as far as i can see it's setup right...
i've commented out that bit about Smart Host which i understood meant that it just passed the mail onto another SMTP server and made it only listen on 127.0.0.1 for security reasons.
now when i send mail whether it be by the gallery2 software or basically Telnetting in and writing the message... i get the mail bounced back... this is the mail that is received back (part of)...
----- Transcript of session follows -----
... while talking to mailcluster.zen.co.uk.:
<<< 550-Verification failed for <root@<omitted-ip>.reverse.<omitted>.com>
<<< 550-Unrouteable address
<<< 550-Administrative Prohibition.
<<< 550-We could not verify your email address
<<< 550 <root@<omitted-ip>.reverse.<omitted>.com>.
550 5.1.1 <<omitted-my-user-at-zen>@zen.co.uk>... User unknown
<<< 503 valid RCPT command must precede DATA
with my only limited knowledge... that looks to me like it's logging into the zen mail server to try and send it from there... and their server filters by ip address so if your not on their network you can't send using their servers...
now... have i completely misunderstood the idea of the SMTP server.... if not... what am i doing wrong?
It's hard to tell what's wrong with your configuration, we don't see any conf files
However, there are probably 2 important things to check, and the first being your sendmail setup. I don't use sendmail, it's far too complicated for my simple needs, postfix is lightyears closer to what I need and easier to configure IMHO. A setting that you are looking for is your relayhost setting, not sure what the sendmail world calls that. It's basically what your email server 'runs' the email through to get it to the outside world. It may be localhost, it may be your ISP's email server. Either way, it's your emails portal out of the network.
The next setting would be what php.ini has as your email setup:
; For Win32 only.
;SMTP = localhost
; For Win32 only.
;sendmail_from = email@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = /usr/bin/sendmail
There's the snippet from php.ini You'll probably want to uncomment the unix line, and customize it to your needs.
VERSIONID(`setup for Red Hat Linux')dnl
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl # make -C /usr/share/ssl/certs usage
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl # For this to work your OpenSSL certificates must be configured.
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl # a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl # masquerade not just the headers, but the envelope as well
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
To prevent spoofing, mail servers often try to use reverse DNS to retranslate your IP address (mail sender's IP) to your hostname (in the sender address on the mail envelope, for instance), just to see if you are really who you say you are.
Basically, this means that you need to have DNS set up properly. If it works right, then both the normal DNS lookups and rDNS (reverse DNS) lookups should work.
So, my advice is to start looking at your DNS configuration.