General :: Safe To Remove Sendmail By Running "yum Erase Sendmail" And Let Postfix Handles "mailx" Also?

Sep 5, 2010

I have installed postfix and dovecot on my server and thought postfix will not only take SMTP connection from my e-mail client like Outlook, but also handles "mailx" commands from the server. However, it looks like sendmail is still responsible for sending mails from "mailx". I tested this by turning it on/off using "service sendmail stop" and "service sendmail start". Mails sent using "mailx" will only be sent when sendmail is up. When I did "yum info sendmail", it lists sendmail as an installed package. Is is safe to remove sendmail by running "yum erase sendmail", and let postfix handles "mailx" also?

View 3 Replies


ADVERTISEMENT

Slackware :: Instruct Mailx To Use Postfix Instead Of Sendmail?

Jun 22, 2011

im just wondering is it possible to instruct mailx to use postfix instead of sendmail while have sendmail and postfix installed? like system-switch-mail way in other distros. basically i would like to be able to use mailx when i uninstall sendmail and keep postfix only installed, so i dont get msg after i press . to send email from mailx

Code:
/usr/sbin/sendmail: No such file or directory

View 7 Replies View Related

General :: Remove Sendmail If Want Postfix?

Oct 14, 2010

I am on Scientific Linux. While trying to remove sendmail, YUM asked to remove depended packages:

alpine
fetchmail
mdadm
mutt
redhat-lsb
sendmail-cf

Should I really remove them and sendmail? If trying to install potfix, YUM does not say that sendmail is incompatible and does not ask to remove it.

View 3 Replies View Related

General :: Control Sendmail Or Mailx From A File?

Oct 14, 2010

I need to control sendmail or mailx from a file. The file will have the receprent as the first line, Subject: has the second line, etc. From what I can find with Google the only why to define the target and subject is on the command line? Does any one know of a way to make a mailer use the data in a file? The file would look like this:

Code:

[code].....

View 2 Replies View Related

CentOS 5 :: Mailx And Sendmail Not Working?

Feb 19, 2009

Im unable to send mail using mailx or sendmail. The sendmail daemon is running.

View 1 Replies View Related

Server :: Sendmail Works But Opens 43 File Handles Per Email

Dec 16, 2010

I'm using Sendmail 8.13.8 on a CentOS 5.5 vServer (Virtuozzo). I'm using a loop in PHP to send a lot of HTML-mails via sendmail. Each mail is a mail with individual statistics for our users, so its not mass mailing, bcc is not an option. It all works fine, but when I take a closer look there is a problem heading our way with a high number of mails: For each mail sendmail opens up 43 files. Sometimes these open files get closed again very fast, sometimes not.

Here is an example using the PHP-script below, it sends 20 mails in a loop:
[root]# php test-mail.php
START: number of open files: 2113
END: number of open files: 2973

This is the worst case. The number of open files (lsof | wc -l) used to send the 20 mails is 860 => 43 open files per mail. Sometimes the files are closed very fast, so I get results like this, too:
[root]# php test-mail.php
START: number of open files: 2113
END: number of open files: 2242

This shows 129 (3 * 43) open files, so the open files for 17 send mails are already closed, for 3 mails the 129 files are still open. In the worst case and with lots of mails our server crashes, the numfile limit of 8192 in user_beancounters is reached (our ISP won't give us more than 8192). Sendmail DeliveryMode is background. Could it be that sendmail tries to send lots ob mails asynchronously and uses 43 open files for each?

I'm only depending on sendmail to deliver the mails, normally I wouldn't dare to touch the sendmail config (like 'if you don't know what you're doing, don't!'). It is not a problem of PHP. I verified this by sending mails via SMTP localhost to sendmail (opened 43 files per mail) and sending mails via SMTP to an ISP-relay (did not open any files per mail). This is the code for test-mail.php:

PHP Code:
<?php
$output = shell_exec('lsof | wc -l');
echo "START: number of open files: $output";
// HTML message
$msg = '<html><head><title>Test mail</title></head><body><p>Mailbody</p></body></html>';
// Set 'Content-type'-header
$header = 'MIME-Version: 1.0' . " ";
$header .= 'Content-type: text/html; charset=iso-8859-1' . " ";
for($i=0; $i<20; $i++) {
// send mail, this opens up 43 files for each
mail('you@yourdomain.com', 'Testmail '.$i, $msg, $header, '-f
[email]bounce@yourdomain.com[/email]'); }
$output = shell_exec('lsof | wc -l');
echo "END: number of open files: $output"; ?>

View 3 Replies View Related

Server :: Postfix As Spam Mailscanner To Protect Mail Server Running Sendmail?

Jul 27, 2011

I am using postfix as spam Mailscanner to protect my mail server running sendmail. The problem is that when I forward an email from MailScanner mail me back with the following error:

<postmaster@localhost.@mydomain.com.>... Real domain name required for sender address (in reply to MAIL FROM command))
Jul 27 13:15:59 smtp postfix/local[28465]: C68AC1000001: to=<root@smtp.mydomain.com>,

[code]....

View 1 Replies View Related

CentOS 5 :: Switch From The Default Sendmail To Postfix Doing A Yum Install Postfix On 5.2

Dec 12, 2008

I have isntalled a server with Centos 5.2 OS, now I would like to switch from the default sendmail to postfix doing a yum install postfix I've noticed there is already available an rpm version for the OS but I would like to compile my own 2.5 version, I've noticed compiling from source does not allow me to use the mail switcher to tell to the system I'm gonna use Postfix instead of Sendmail as the default MTA while this is possible when I use the "official" rpm version of the package. Now my question is this, would this be a problem? There is some specific procedure/best practice I should follow? Or once compiled and configured Postfix I can safely disable/uninstall sendmail?

View 6 Replies View Related

General :: SMTP AUTH, Sendmail Client To Postfix Server?

Dec 2, 2010

I'm hoping someone here can help, as I've been beating my head on the wall for a week now with little advancement. I've found a number of tutorials on setting this up, however none of them have gotten me 100% of the way there. Here's my situation: home-based Fedora server (Core 8), running sendmail 8.14.2-1. Connecting to hosting company's smtp server over port 587, to bypass Verizon's blocking of port 25.

My /etc/mail/sendmail.mc file looks like this (comment lines removed):Quote:

divert(-1)dnl
define(`SMART_HOST', `smtp2.datarealm.com')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN')dnl
FEATURE(`authinfo',`hash -o /etc/mail/auth/client-info.db')dnl
define(`RELAY_MAILER', `esmtp')dnl

[Code]....

View 14 Replies View Related

General :: Sendmail-2 - Wrong Number Of Instances Of Process Sendmail - Expected Instances Equal

Jun 15, 2011

I have bees assigned a problem which states that :

sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0

THats it...what exactly this means and how should i proceed for solving this problem...

View 1 Replies View Related

Server :: Sendmail M4 Configuration Base Directory /usr/share/sendmail-cf Was Not Found

Nov 1, 2010

I am using webmin for my daily tasks. I have fedora 13, whenever I click on ''Sendmail M4 Configuration'' or Outgoing Addresses (generics)'' I get the following error message

Quote:

The Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), or the module config is incorrect. I read documentation at sendmail.org, it seems that structure of directories for send mail has been changed in version sendmail-8.1.4 shipped with FC13. In webmin config module we have

Quote:

Sendmail M4 base directory = /usr/share/sendmail-cf

which is not there. I did a locate / sendmail-cf on the command line, it finds nothing

View 17 Replies View Related

Software :: Sendmail Segfault (ssmtp) On Gentoo Through Gmail - Can't Send Mail: Sendmail Process Failed

Jul 13, 2010

I have been trying to set up ssmtp so I can send email using Gmail's ssmtp servers. However, when I try to send mail (using mailx), I get the following message:

Code:

Can't send mail: sendmail process failed

Here's the last line from dmesg (the only one applicable, according to the timestamps and message content):

Code:

[484114.608378] sendmail[17975]: segfault at 0 ip b7dbbbf3 sp bfb0dc4c error 4 in libc-2.11.2.so[b7d44000+14e000]

Here's my ssmtp.conf:

Code:

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

[code].....

View 2 Replies View Related

Fedora :: Postfix Or Sendmail Virtuser?

Aug 6, 2009

browser just crashed trying to upload the config file at the end, so I fi miss something, sorry.I have been trying over the past few days to get either postfix or sendmail to properly forward my emails. I have made an entry in virtusers (for both postfix and sendmail) as:[URL]..I know that they these files are mapped correctly because I did an entry of:[URL].. that worked, it sent it to root's mailbox. I got this to work in both sendmail of postfix. What the problem is that when I point it to an external domain (ex. name@gmail.com), it fails, and the email gets lost somewhere on my server (I have yet to fine where they are going). The other thing I noticed is when I send an email from my server (via php) and send it to test (or whatever)@example.com the catchall works, and sends the email to my gmail address. Is this virtuser only applicable for outgoing email? Or is something else wrong?

View 1 Replies View Related

Red Hat / Fedora :: Configure Sendmail Or Postfix?

Nov 28, 2010

How will I configure sendmail or postfix ,so that I can send mail to external mailclient like to gmail,hotmail etc.

View 1 Replies View Related

Server :: Sendmail To Postfix Migration?

Oct 25, 2010

I have a lightweight admin background, but good enough to set up most servers. I have switched from sendmail to postfix for the first time, but I keep going around in circles on the following. In sendmail, I used to maintain a table (mailertable) where I would redirect email like this

[Code]....

I happily mapped any incoming email address of any valid hosted domain either to go out to it's final destination via smtp, or if the person has a local mailbox, it delivered locally. Any errors could be forced, and a catch-all for the domain could be directed also.

I've struggled with virtual hosts and transport and a combination of the two to come up with the same result for postfix. I have this feeling I'm missing something really simple, or I am not 'getting it' when I'm doing something postfixy and I still have sendmaily expectations. right path so I will at least know I'm pointing in the right direction and working with the right files to achieve my aims? Postfix is so amazingly powerful and flexible, I'm having trouble figuring this bit out.

I have this feeling I just need a calm hand on my shoulder, a friendly smile and a hand pointing me the right way..

View 6 Replies View Related

CentOS 5 Server :: Migration Sendmail To Postfix?

Sep 22, 2011

todo: I have now running sendmail with milters and auth, dovecot as lda configured with virtual domains / Local User, srs. on centos 5.x

I want to migrate to Postfix with:
at first step the same Local User now with Mbox and there Mails
same milter with macros for auth....
dovecot as lda

[Code]...

View 1 Replies View Related

Server :: Sendmail Not Reading Default Sendmail.cf ?

Apr 1, 2010

I recently modified sendmail.cf to use a third party SMTP server to send emails. It works great. But when I run sendmail from the command line, I have to specify the -C flag and force feed it the location of my sendmail.cf, or else it doesn't work.

So in other words, the following works great:

However, if I don't specify the -C flag, sendmail doesn't consider what's in the sendmail.cf and barfs:

I don't run sendmail as a daemon. I'm only using it to send emails. I know my modifications of sendmail.cf are correct because it works perfectly when I use the -C flag. I searched my disk to see if I could find another sendmail.cf on the machine and only the one in /etc/mail came up.

Why sendmail is not reading my sendmail.cf?

I'm running Sendmail version 8.14.2 on Fedora Core 8.

View 1 Replies View Related

Server :: User Mailbox Size In Postfix/Sendmail?

Apr 6, 2010

I'm running Postfix in slackware 12.1. The mails are stored in /var/spool/mail/username. When a user's mailbox size got more than 200MB, the user can't check their mail. when it happend the log shows:

Apr 4 10:04:11 ns1 popa3d[2391]: Authentication passed for userX
Apr 4 10:04:11 ns1 popa3d[2391]: Failed or refused to load /var/spool/mail/userX

View 1 Replies View Related

Software :: RHEL6 Sendmail & Postfix Can't Use Local User?

Jul 3, 2011

I've tried to configure the mail service in RHEL6 but seems both sendmail and postfix can't use local user located in /etc/passwd.

Like, user Tommy and Jake they got User Unknow from maillog
Tommy:x:506:507::/home/Tommy:/bin/bash
Jake:x:507:508::/home/Jake:/bin/bash
But IF I use users' home folder not located in /home then it can go throught.mailuser2:x:513:514::/rhome/mailuser/mailuser2:/bin/bash mailuser3:x:514:515::/rhome/mailuser/mailuser3:/bin/bash

[Code]...

View 1 Replies View Related

CentOS 5 Server :: Sendmail To Postfix - Transfer All The Mail And Settings From The Old To The New?

Jul 31, 2009

i currently installed centos 5.3 with postfix. My old server is centos 4.5 final / new 5.3 final. Old server has sendmail / new has postfix. how can i transfer all the mail and settings from the old to the new? also, the old mail server is mail.xxx.xxx and for testing purposes i named the new mail server mail2.xxx.xxx.

when i an ready to put it into production, the new server will need to be mail.xxx.xxx and the old removed from the system. How do i go about changing the name and making sure everything comes out correct?

View 1 Replies View Related

CentOS 5 Server :: Sendmail To Postfix Migration: Struggling With Config

Oct 25, 2010

I have a lightweight admin background, but good enough to set up most servers. I have switched from sendmail to postfix for the first time, but I keep going around in circles on the following...

In sendmail, I used to maintain a table (mailertable) where I would redirect email like this

Quote:

View 1 Replies View Related

CentOS 5 Server :: Cannot Get Sendmail Or Postfix To Send A 220 Response - Nor Respond With Details

Aug 11, 2009

I cannot get either sendmail or postfix to send a 220 response, nor respond with details. See below for sample telnet output. Details: I have a server that requires email, but only for light use. I'm definitely not an expert, but I have set up a sendmail configuration on a previous server. I tried to configure sendmail first and then postfix later, when I couldn't get sendmail working. I'm not sure exactly what the problem is, but I have a feeling the following might yield some important information. Note: this is the result for Postfix, but virtually the same thing happened with sendmail, too. That is, initially the telnet connection would close immediately. Afterwords, I could connect a second time but then it never responded with a 220 banner nor any 250's.

[Code]...

View 4 Replies View Related

Software :: Sendmail Is Running But 25 Is Not Listening

Feb 5, 2011

I have this issue in my Machine where the sendmail service is running and my port 25 is not listening ,some inputs from my serer

Code:

Code:

Code:

Code:

Code:

Sendmail (pid 13090 13089 13082) is running...

View 10 Replies View Related

Security :: ConfAUTH_OPTIONS Fails With 'p' Running Sendmail 8.14.4 And Saslauthd 2.1.23?

May 3, 2011

I'm building a new machine with slackware 13.37 64bit and so far all has gone well except for secure smtp. My previous setup was with slackware 13.1 32bit which worked fine. If I run with (`confAUTH_OPTIONS', `A p y') in my sendmail config it shows "AUTH warning: no mechanisms" in my maillog and obviously fails to authenticate. When I take the 'p' out and run with (`confAUTH_OPTIONS', `A y') then it does list the defined confAUTH_MECHANISMS and works. I would prefer to run with the 'p' option and require the security layer.

Most of my setup guidance has come from the "Sendmail SMTP AUTH Howto":
http://www.linuxquestions.org/questi...-howto-224543/
The Sendmail "TLS SASL SMTP-AUTH" page on slackwiki:
http://www.slackwiki.org/Sendmail_TLS_SASL_SMTP-AUTH
And this page for debugging "How to test Sendmail SASL Authentication":
http://networking.ringofsaturn.com/P...entication.php

[Code]...

My hope is that I'm just missing something simple. Does anyone have insight into why adding the 'p' to confAUTH_OPTIONS is causing this behavior?

View 2 Replies View Related

Security :: ConfAUTH_OPTIONS Fails With 'p' Running Sendmail 8.14.4 And Saslauthd 2.1.23

May 8, 2011

I'm building a new machine with slackware 13.37 64bit and so far all has gone well except for secure smtp. My previous setup was with slackware 13.1 32bit which worked fine.

If I run with (`confAUTH_OPTIONS', `A p y') in my sendmail config it shows "AUTH warning: no mechanisms" in my maillog and obviously fails to authenticate.

When I take the 'p' out and run with (`confAUTH_OPTIONS', `A y') then it does list the defined confAUTH_MECHANISMS and works.

I would prefer to run with the 'p' option and require the security layer.

Most of my setup guidance has come from the "Sendmail SMTP AUTH Howto":

My goal is to be able to send mail remotely with secure authentication. If the way I'm trying to go about it is old and there is some newer/better way I'm happy to go with that - but sendmail/saslauthd has worked for me in the past.

Sendmail is version 8.14.4 and looks like it has the necessary options compiled in:

Code:

saslauthd is version 2.1.23 and supports shadow:

Code:

I did discover the need to link /etc/sasl2 to /usr/lib64/sasl2 and created the Sendmail.conf file there:

Code:

Here's the sendmail configuration script I'm using. Its really just the vanilla /usr/share/sendmail/cf/cf/sendmail-slackware-tls-sasl.mc file with my cert file names:

Code:

When I try to connect with (`confAUTH_OPTIONS', `A p y') in the config here is the output I get in maillog (none of the other logs seem to show anything and I dont see any errors/warnings when I restart sendmail):

Code:

If I change the option so its just (`confAUTH_OPTIONS', `A y') then it does work and this is the log output I get:

Code:

My client is configured to use SSL and when I go through the setup, it does appear to authenticate against the smtp server and it validates. The fail comes in when trying to actually send mail.

Does anyone have insight into why adding the 'p' to confAUTH_OPTIONS is causing this behavior?

View 4 Replies View Related

Software :: Determine The Full Path Of Sendmail Running On The System

Nov 16, 2010

Checking the process table for the running sendmail, I would like to know the full path to the sendmail binary a la the ps -ef on a Sun or other servers. How do I get ps to give me the actual path, or should I use a different tool on my Linux servers?

View 2 Replies View Related

Server :: Slackware Based SMTP Server Running Sendmail Is Having These Errors ?

Apr 7, 2011

Im not able to find good response on this from google, urgent help required.

While im looking at my smtp server log at /var/log/maillog, im having these two errors for which im unable to find the reason.

1)Could not open inline file /etc/MailScanner/reports/en/inline.sig.txt, No such file or directory

2)did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

View 1 Replies View Related

General :: How To Configure The Sendmail

Jan 15, 2011

I have a apache server installed on my system which I use for testing out stuff like wordpress and forums. I use the server for learning stuff only. I would like to know what do I have to do so that these blogs, forums etc can send an email when someone registers. I guess most of these use sendmail to send email. So how do I configure sendmail so that it sends email using my gmail address and smtp. Also I think there is a php mail option (or something called like that) that allows us to send email without having sendmail installed.

View 1 Replies View Related

General :: Sendmail With AD Authentication

Aug 9, 2010

Is it possible to migrate users from sendmail to Windows AD?

View 3 Replies View Related

Ubuntu Installation :: Safe To Erase Windows From A Laptop?

Oct 18, 2010

Stupid question time, but just to make sure (I really don't know anything about hardware):

If Ubuntu LiveCD (or a dual-boot) works on a laptop, is it safe to completely erase Windows from the harddrive - including the hidden partition?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved