On 2/26/13 8:17 PM, Nico Kadel-Garcia wrote:
On Tue, Feb 26, 2013 at 7:17 PM, CS DBA <[email protected]> wrote:
Hi All;

I've installed mediawiki for our company on a Scientific Linux 6.x server.
Mediawiki does not
allow users I create to login and go to a settings page to change their
password.

The only way users can change passwords is to click the lost password link
and have Mediawiki
email them a new password.
However, email does not work. I downloaded sendmail but still no luck.
I also tried to send a simple email from the command line via sendmail,
still no luck
Downloading isn't enough, you actually ahve to start it. But if you're
using SL 6.3, I strongly suspect that you already had Postfix
installed and running, and you should rip sendmail right back out and
use Postfix (wich is the default now for our favorite upstream
vendor).

Sendmail is an MTA, a Mail Transfer Agent. If the email got to it, it
should show up in /var/log/maillog.

I'm pretty well versed in basic Linux admin tasks but when it comes to
sendmail, mailx, etc
I'm a complete noobie.
mailx is an old, somewhat simpler command line client for email. If
that's not working, something is wrong. Are you sure you don't have a
network firewall in place somewhere that is blocking email from any
but designated, active SMTP servers, and machines like yours would be
forced to pass their mail first to a "smarthost"? I've done that kind
of blocking myself, *precisely* to keep every student and staff and
their granny from running public and unmaintained wikis and mailing
lists that would be coming from sites inside our network but had
nothing to do with the company.

Any help on setting up the mail (and getting it to play nice with mediawiki)
would be much appreciated

Thanks in advance...

/Kevin
See above. Check /var/spool/mailllog, and see what "/usr/lib/sendmail
-bp" says about any outstanding email messages stuck in the queue.






No luck.

Here's where I'm at:

1) thinking I needed sendmail I installed sendmail & sendmail-cf
   based on feedback from the list I've since removed them both

2) SELINUX is disables, also the default IPTABLES firewall is disabled
We do have a firtewall for the office (Untangle) but it is not blocking any outgoing traffic

3) There is no maillog at /var/spool

4) /usr/lib/sendmail -bp says this:

   Note:  I changed my work email to my_email@my_domain.com for security

# /usr/lib/sendmail -bp
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
0D8FD8C04DE 737 Tue Feb 26 15:48:12 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1a]:25: Network is unreachable)
                                         my_email@my_domain.com

4AEE78C04C2 657 Tue Feb 26 15:50:19 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c03::1a]:25: Network is unreachable)
                                         my_email@my_domain.com

467548C046A 662 Tue Feb 26 18:37:43 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1b]:25: Network is unreachable)
                                         my_email@my_domain.com

6C85B8C04DC 657 Tue Feb 26 15:45:28 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1b]:25: Network is unreachable)
                                         my_email@my_domain.com

1CE388C0452 662 Tue Feb 26 18:33:58 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1b]:25: Network is unreachable)
                                         my_email@my_domain.com

1139F8C04DF 657 Tue Feb 26 15:53:20 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c03::1b]:25: Network is unreachable)
                                         my_email@my_domain.com

ED7278C04CF 472 Sat Feb 23 12:22:21 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1b]:25: Network is unreachable)
                                         my_email@my_domain.com

877348C0475      394 Wed Feb 27 10:40:40 [email protected]
(connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c03::1a]:25: Network is unreachable)
                                         my_email@my_domain.com

784ED8C04CA 656 Tue Feb 26 15:39:08 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1a]:25: Network is unreachable)
                                         my_email@my_domain.com

56BB88C04C8 656 Tue Feb 26 15:38:12 [email protected] (connect to alt2.aspmx.l.google.com[2607:f8b0:400c:c01::1a]:25: Network is unreachable)
                                         my_email@my_domain.com

-- 11 Kbytes in 10 Requests.



5) If I try and send an email like this:
# sendmail -v  my_email@my_domain.com < t

where t has this (including a trailing blank line):
# cat t
Hello, this is a test
Subject: test mail
first line of my message

then I get this in the localhost mail for root


# mailx
Heirloom Mail version 12.4 7/29/08.  Type ? for help.
"/var/spool/mail/root": 1 message 1 new
>N 1 Mail Delivery System Wed Feb 27 10:41 60/2235 "Mail Delivery Status "
&
Message  1:
From MAILER-DAEMON  Wed Feb 27 10:41:41 2013
Return-Path: <>
X-Original-To: root@this_server.my_domain.com
Delivered-To: root@this_server.my_domain.com
Date: Wed, 27 Feb 2013 10:41:41 -0700 (MST)
From: MAILER-DAEMON@this_server.my_domain.com (Mail Delivery System)
Subject: Mail Delivery Status Report
To: root@this_server.my_domain.com
Auto-Submitted: auto-replied
Content-Type: multipart/report; report-type=delivery-status;
    boundary="877348C0475.1361986901/this_server.my_domain.com"
Status: R

Part 1:
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host this_server.my_domain.com.

Enclosed is the mail delivery report that you requested.

                   The mail system

<my_email@my_domain.com>: connect to
alt2.aspmx.l.google.com[2607:f8b0:400c:c03::1a]:25: Network is unreachable

Part 2:
Content-Description: Delivery report
Content-Type: message/delivery-status


Part 3:
Content-Description: Message Headers
Content-Type: text/rfc822-headers

Return-Path: <root@this_server.my_domain.com>
Received: by this_server.my_domain.com (Postfix, from userid 0)
    id 877348C0475; Wed, 27 Feb 2013 10:40:40 -0700 (MST)
Message-Id: <20130227174040.877348C0475@this_server.my_domain.com>
Date: Wed, 27 Feb 2013 10:40:40 -0700 (MST)
From: root@this_server.my_domain.com (root)
To: undisclosed-recipients:;
&
At EOF



6)  I can however ping  alt2.aspmx.l.google.com
# ping alt2.aspmx.l.google.com
PING alt2.aspmx.l.google.com (173.194.75.27) 56(84) bytes of data.
64 bytes from ve-in-f27.1e100.net (173.194.75.27): icmp_seq=1 ttl=48 time=99.3 ms 64 bytes from ve-in-f27.1e100.net (173.194.75.27): icmp_seq=2 ttl=48 time=99.7 ms 64 bytes from ve-in-f27.1e100.net (173.194.75.27): icmp_seq=3 ttl=48 time=99.8 ms 64 bytes from ve-in-f27.1e100.net (173.194.75.27): icmp_seq=4 ttl=48 time=99.1 ms 64 bytes from ve-in-f27.1e100.net (173.194.75.27): icmp_seq=5 ttl=48 time=99.6 ms



7) Help?

Not sure if I've missed a config item somewhere, is there some file I need to setup with SMTP info?




Thanks in advance

Reply via email to