Re: [CentOS] Not receiving root mail

2011-08-24 Thread Tony Mountifield
In article 50117.213.157.4.156.1314117697.squir...@nimrod.dscd.de,
Alexander Dalloz ad+li...@uni-x.org wrote:
  In article
  cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
  Anne Wilson cannewil...@googlemail.com wrote:
 
  I removed sendmail - but it also removed clamav-milter.  When I tried
  to re-install clamav-milter it would have pulled sendmail back in so I
  aborted.  Advice?
 
  milters are specific to sendmail. clamav-milter is a linkage between
  ClamAV and sendmail, so you don't need it with postfix. If you want to
  use ClamAV, you will need to find out how to link it with postfix, but
  it won't be by using clamav-milter.
 
 Sorry Tony, that's not correct. Though the MILTER interface (Send_M_ail
 f_ILTER) originally was an enhancement in Sendmail, meanwhile since quite
 some time Postfix supports milter applications as well.
 
 http://www.postfix.org/MILTER_README.html
 
 So of course Postfix users can implement milter based solutions. And in
 contrast to an AMaViS setup a milter based binding of ClamAV is
 lightweight.

OK, thanks, I stand corrected, and educated! Must admit I'm not very
familiar with postfix - only ever tried to do some debugging on it for
someone else.

Of course, that begs the question of whether clamav-milter would work
with postfix. If so, it should depend on (sendmail OR postfix). If not,
perhaps it should be called clamav-milter-sendmail instead, with another
package for clamav-milter-postfix.

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Anne Wilson
On 22 August 2011 19:45, Alexander Dalloz ad+li...@uni-x.org wrote:

 Anne

 alternatives --config mta

 Switch to Postfix. Validate by

 alternatives --display mta

 then remove Sendmail if you do not use it.


Thanks - that's what I was looking for.

alternatives --display mta
mta - status is manual.
link currently points to /usr/sbin/sendmail.postfix
/usr/sbin/sendmail.postfix - priority 30
slave mta-pam: /etc/pam.d/smtp.postfix
slave mta-mailq: /usr/bin/mailq.postfix
slave mta-newaliases: /usr/bin/newaliases.postfix
slave mta-rmail: /usr/bin/rmail.postfix
slave mta-sendmail: /usr/lib/sendmail.postfix
slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
/usr/sbin/sendmail.sendmail - priority 90
slave mta-pam: /etc/pam.d/smtp.sendmail
slave mta-mailq: /usr/bin/mailq.sendmail
slave mta-newaliases: /usr/bin/newaliases.sendmail
slave mta-rmail: /usr/bin/rmail.sendmail
slave mta-sendmail: /usr/lib/sendmail.sendmail
slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz
Current `best' version is /usr/sbin/sendmail.sendmail.

I assume this means that sendmail.postfix will be used as preference,
but that last line confuses me.  Is it safe to remove sendmail now, or
does that imply that some things will still need it?

Anne
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Anne Wilson
On 23 August 2011 07:47, Anne Wilson cannewil...@googlemail.com wrote:
 On 22 August 2011 19:45, Alexander Dalloz ad+li...@uni-x.org wrote:

 Anne

 alternatives --config mta

 Switch to Postfix. Validate by

 alternatives --display mta

 then remove Sendmail if you do not use it.


 Thanks - that's what I was looking for.

 alternatives --display mta
 mta - status is manual.
 link currently points to /usr/sbin/sendmail.postfix
 /usr/sbin/sendmail.postfix - priority 30
 slave mta-pam: /etc/pam.d/smtp.postfix
 slave mta-mailq: /usr/bin/mailq.postfix
 slave mta-newaliases: /usr/bin/newaliases.postfix
 slave mta-rmail: /usr/bin/rmail.postfix
 slave mta-sendmail: /usr/lib/sendmail.postfix
 slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
 slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
 slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
 slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
 /usr/sbin/sendmail.sendmail - priority 90
 slave mta-pam: /etc/pam.d/smtp.sendmail
 slave mta-mailq: /usr/bin/mailq.sendmail
 slave mta-newaliases: /usr/bin/newaliases.sendmail
 slave mta-rmail: /usr/bin/rmail.sendmail
 slave mta-sendmail: /usr/lib/sendmail.sendmail
 slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz
 slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz
 slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz
 slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz
 Current `best' version is /usr/sbin/sendmail.sendmail.

 I assume this means that sendmail.postfix will be used as preference,
 but that last line confuses me.  Is it safe to remove sendmail now, or
 does that imply that some things will still need it?

 Anne


A large step nearer.  Mail is now being received.  Unfortunately I
still can't send, so I need to find out why it isn't using the
Transport settings.

Anne
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Fajar Priyanto
On Mon, Aug 22, 2011 at 9:29 PM, Anne Wilson cannewil...@googlemail.com wrote:
 Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: from=a...@borg.xxx.lan,
 size=7487, nrcpt=1 (queue active)
 Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org,
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43,

 mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan

Hi Anne :)
Found you again from Mandriva list years ago :)

I think you need to put xxx.org also in mydestination. So the mail
won't get through internet.
As you can see, it's sending to a...@xxx.org.

mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan, xxx.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Anne Wilson
On 22 August 2011 20:50, Dennis Jacobfeuerborn denni...@conversis.de wrote:
 One of the first things I do after the installation of a system is a yum
 install postfix followed by a yum remove sendmail. No need to deal with
 alternatives if you don't intend to deal with sendmail anyway.

I removed sendmail - but it also removed clamav-milter.  When I tried
to re-install clamav-milter it would have pulled sendmail back in so I
aborted.  Advice?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Tony Mountifield
In article cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
Anne Wilson cannewil...@googlemail.com wrote:
 On 22 August 2011 20:50, Dennis Jacobfeuerborn denni...@conversis.de wrote:
  One of the first things I do after the installation of a system is a yum
  install postfix followed by a yum remove sendmail. No need to deal with
  alternatives if you don't intend to deal with sendmail anyway.
 
 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?

milters are specific to sendmail. clamav-milter is a linkage between
ClamAV and sendmail, so you don't need it with postfix. If you want to
use ClamAV, you will need to find out how to link it with postfix, but
it won't be by using clamav-milter.

Cheers
Tony

-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Marc Deop i Argemí
On 23/08/2011 11:46, Tony Mountifield wrote:
 In article 
 cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
 Anne Wilson cannewil...@googlemail.com wrote:
 On 22 August 2011 20:50, Dennis Jacobfeuerborn denni...@conversis.de wrote:
 One of the first things I do after the installation of a system is a yum
 install postfix followed by a yum remove sendmail. No need to deal with
 alternatives if you don't intend to deal with sendmail anyway.

 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?
 milters are specific to sendmail. clamav-milter is a linkage between
 ClamAV and sendmail, so you don't need it with postfix. If you want to
 use ClamAV, you will need to find out how to link it with postfix, but
 it won't be by using clamav-milter.

 Cheers
 Tony

You can get src.rpm files for clamav from here:

http://pkgs.repoforge.org/clamav/

Regards
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Anne Wilson
On 23 August 2011 10:46, Tony Mountifield t...@softins.co.uk wrote:
 In article 
 cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
 Anne Wilson cannewil...@googlemail.com wrote:
 On 22 August 2011 20:50, Dennis Jacobfeuerborn denni...@conversis.de wrote:
  One of the first things I do after the installation of a system is a yum
  install postfix followed by a yum remove sendmail. No need to deal with
  alternatives if you don't intend to deal with sendmail anyway.
 
 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?

 milters are specific to sendmail. clamav-milter is a linkage between
 ClamAV and sendmail, so you don't need it with postfix. If you want to
 use ClamAV, you will need to find out how to link it with postfix, but
 it won't be by using clamav-milter.

OK, that's fine, then.  In the past I ran scans via cron - which I've
set up again.  However, I'm back with the original problem of not
receiving root mail - and not receiving any local messages that should
be routed by the /etc/postfix/transport.db

Anne
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Scott Robbins
On Tue, Aug 23, 2011 at 11:59:08AM +0200, Marc Deop i Argemí wrote:

 On 23/08/2011 11:46, Tony Mountifield wrote:


  Anne Wilson cannewil...@googlemail.com wrote:

  I removed sendmail - but it also removed clamav-milter.  When I tried
  to re-install clamav-milter it would have pulled sendmail back in so I
  aborted.  Advice?
  milters are specific to sendmail. clamav-milter is a linkage between
  ClamAV and sendmail, so you don't need it with postfix. If you want to
  use ClamAV, you will need to find out how to link it with postfix, but
  it won't be by using clamav-milter.
 
  Cheers
  Tony

 
 You can get src.rpm files for clamav from here:
 
 http://pkgs.repoforge.org/clamav/
 
Not even necessary to use the src.rpm.  A simple yum install clamav will
install without pulling sendmail.  However, as Tony wrote, Anne will
have to figure out how to use clamav with postfix. 



-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Cordelia: You can't see everything. You're just a vampire
like everyone else. . . that didn't come out right.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Les Mikesell
On 8/23/11 3:51 AM, Anne Wilson wrote:
 
 mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan, xxx.org

 This morning I restored the old main.cf, which uses the old network
 settings of xxx.net.  Now mail is being received, but sending mail is
 being refused by my server.  I have two sending profiles - one that
 sends to the server (CentOS 6), which then should use
 /etc/postfix/transport to separate local mail and external mail,
 sending the external mail to the ISP's smtp server.  The second
 profile is googlemail smtp, used when I'm away from home.

 Whichever I try to use I get a message that my mail server has refused
 the connection.  I'm still trying to work out why.  It sounds like
 authentication problem, but I can't see why it's happening.

Unless the next hop requires smtp authentication, the likely reason is that the 
'From: ' address doesn't have a DNS-resolvable domain name.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Anne Wilson
On Tuesday 23 Aug 2011 Les Mikesell wrote:
 On 8/23/11 3:51 AM, Anne Wilson wrote:
  mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan,
  xxx.org
  
  This morning I restored the old main.cf, which uses the old network
  settings of xxx.net.  Now mail is being received, but sending mail is
  being refused by my server.  I have two sending profiles - one that
  sends to the server (CentOS 6), which then should use
  /etc/postfix/transport to separate local mail and external mail,
  sending the external mail to the ISP's smtp server.  The second
  profile is googlemail smtp, used when I'm away from home.
  
  Whichever I try to use I get a message that my mail server has refused
  the connection.  I'm still trying to work out why.  It sounds like
  authentication problem, but I can't see why it's happening.
 
 Unless the next hop requires smtp authentication, the likely reason is that
 the 'From: ' address doesn't have a DNS-resolvable domain name.

Hi, Les.  Another old friend :-)

FWIW, I found that the right combination in main.cf was to set myhost to the 
local name, borg.xxx.lan and mydomain to one of my owned domains, xxx.net, as 
it was on the old server.  Adding a couple of lines to transport (re-hashed, 
of course) now gives me internal mail when addressed to a...@xxx.net or 
a...@xxx.lan, and external mail when addressed any other way.  Perfect.

Thanks to all who tried to help.

Anne


signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Rob Kampen

Anne Wilson wrote:

On 23 August 2011 10:46, Tony Mountifield t...@softins.co.uk wrote:
  

In article cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
Anne Wilson cannewil...@googlemail.com wrote:


On 22 August 2011 20:50, Dennis Jacobfeuerborn denni...@conversis.de wrote:
  

One of the first things I do after the installation of a system is a yum
install postfix followed by a yum remove sendmail. No need to deal with
alternatives if you don't intend to deal with sendmail anyway.



I removed sendmail - but it also removed clamav-milter.  When I tried
to re-install clamav-milter it would have pulled sendmail back in so I
aborted.  Advice?
  

milters are specific to sendmail. clamav-milter is a linkage between
ClamAV and sendmail, so you don't need it with postfix. If you want to
use ClamAV, you will need to find out how to link it with postfix, but
it won't be by using clamav-milter.



OK, that's fine, then.  In the past I ran scans via cron - which I've
set up again.  However, I'm back with the original problem of not
receiving root mail - and not receiving any local messages that should
be routed by the /etc/postfix/transport.db
  
I use amavisd and clamav/clamd from rf repo - instructions on setup are 
on the CentOS wiki - has always just worked for me with 5.x

HTH

Anne
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  
attachment: rkampen.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Les Mikesell
On 8/23/2011 4:46 AM, Tony Mountifield wrote:

 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?

 milters are specific to sendmail. clamav-milter is a linkage between
 ClamAV and sendmail, so you don't need it with postfix. If you want to
 use ClamAV, you will need to find out how to link it with postfix, but
 it won't be by using clamav-milter.

I only use sendmail with MimeDefang as a milter (which can coordinate 
everything else), but I thought that postfix has had milter support for 
a few years now.

-- 
  Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Alexander Dalloz
 In article
 cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
 Anne Wilson cannewil...@googlemail.com wrote:

 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?

 milters are specific to sendmail. clamav-milter is a linkage between
 ClamAV and sendmail, so you don't need it with postfix. If you want to
 use ClamAV, you will need to find out how to link it with postfix, but
 it won't be by using clamav-milter.

 Cheers
 Tony

Sorry Tony, that's not correct. Though the MILTER interface (Send_M_ail
f_ILTER) originally was an enhancement in Sendmail, meanwhile since quite
some time Postfix supports milter applications as well.

http://www.postfix.org/MILTER_README.html

So of course Postfix users can implement milter based solutions. And in
contrast to an AMaViS setup a milter based binding of ClamAV is
lightweight.

Regards

Alexander



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-23 Thread Craig White

On Aug 23, 2011, at 9:41 AM, Alexander Dalloz wrote:

 In article
 cajfu-f7ncz+iamxzg5rq0vzaelctbcncnfysyykaapxw5ce...@mail.gmail.com,
 Anne Wilson cannewil...@googlemail.com wrote:
 
 I removed sendmail - but it also removed clamav-milter.  When I tried
 to re-install clamav-milter it would have pulled sendmail back in so I
 aborted.  Advice?
 
 milters are specific to sendmail. clamav-milter is a linkage between
 ClamAV and sendmail, so you don't need it with postfix. If you want to
 use ClamAV, you will need to find out how to link it with postfix, but
 it won't be by using clamav-milter.
 
 Cheers
 Tony
 
 Sorry Tony, that's not correct. Though the MILTER interface (Send_M_ail
 f_ILTER) originally was an enhancement in Sendmail, meanwhile since quite
 some time Postfix supports milter applications as well.
 
 http://www.postfix.org/MILTER_README.html
 
 So of course Postfix users can implement milter based solutions. And in
 contrast to an AMaViS setup a milter based binding of ClamAV is
 lightweight.

of course but unless the clamav-milter packager removes the dependency on 
sendmail, it's out with the bathwater.

Craig
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Not receiving root mail

2011-08-22 Thread Anne Wilson
Although I have the alias defined in /etc/aliases and /etc/postfix/aliases, 
I'm not receiving root mail.  Following the previous thread about unreceived 
logwatch mail, I tested with a manual run of logwatch, and found that my ISP 
is rejecting the mail because it is seeing an envelope carrying my local 
address.  My suspicion is that the mail is going out via sendmail instead of 
postfix-sendmail.  IIRC there used to be system-switch-mail or a similarly 
named package.  I can't find any such package - and can't remember which file 
it edited.  Can someone please point me to that file?

Anne
-- 
New to KDE Software? - get help from http://userbase.kde.org


signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Anne Wilson
On Monday 22 Aug 2011 12:49:21 Anne Wilson wrote:
 Although I have the alias defined in /etc/aliases and /etc/postfix/aliases,
 I'm not receiving root mail.  Following the previous thread about
 unreceived logwatch mail, I tested with a manual run of logwatch, and
 found that my ISP is rejecting the mail because it is seeing an envelope
 carrying my local address.  My suspicion is that the mail is going out via
 sendmail instead of postfix-sendmail.  IIRC there used to be
 system-switch-mail or a similarly named package.  I can't find any such
 package - and can't remember which file it edited.  Can someone please
 point me to that file?
 
The actual return report says:

a...@.org: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
failed for a...@xxx.lan 550-Unrouteable address 550 Envelope Sender:
Domain must resolve in DNS! (in reply to RCPT TO command)

Anne
-- 
New to KDE Software? - get help from http://userbase.kde.org


signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Barry Brimer
 a...@.org: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
failed for a...@xxx.lan 550-Unrouteable address 550 Envelope Sender:
Domain must resolve in DNS! (in reply to RCPT TO command)

It looks like your outgoing mail from your local user(s) needs to be 
masqueraded or the whole server does.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Always Learning

On Mon, 2011-08-22 at 13:07 +0100, Anne Wilson wrote:

 a...@.org: host mailhost.zen.co.uk[212.23.3.98] said:
 550-Verification
 failed for a...@xxx.lan 550-Unrouteable address 550 Envelope
 Sender:
 Domain must resolve in DNS! (in reply to RCPT TO command)

Once your email is out on the Internet is needs a genuine Internet email
address. xxx.lan is known only to your internal system and it is not an
Internet email address.

Care to show the headers of your outgoing email ? (cover-up the bits you
want to keep private)


-- 
With best regards,

Paul.
England,
EU.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Brian Mathis
On Mon, Aug 22, 2011 at 8:07 AM, Barry Brimer li...@brimer.org wrote:
 a...@.org: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
    failed for a...@xxx.lan 550-Unrouteable address 550 Envelope Sender:
    Domain must resolve in DNS! (in reply to RCPT TO command)

 It looks like your outgoing mail from your local user(s) needs to be
 masqueraded or the whole server does.


I think Barry has it right here.

Also, if you're using postfix, you should yum remove sendmail to
avoid any possible conflicts.  There's no reason to have sendmail,
postfix implements its own 'sendmail' command.


-☙ Brian Mathis ❧-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Scott Robbins
On Mon, Aug 22, 2011 at 01:12:54PM +0100, Always Learning wrote:
 
 On Mon, 2011-08-22 at 13:07 +0100, Anne Wilson wrote:
 
  a...@.org: host mailhost.zen.co.uk[212.23.3.98] said:
  550-Verification
  failed for a...@xxx.lan 550-Unrouteable address 550 Envelope
  Sender:
  Domain must resolve in DNS! (in reply to RCPT TO command)
 
 Once your email is out on the Internet is needs a genuine Internet email
 address. xxx.lan is known only to your internal system and it is not an
 Internet email address.
 
 Care to show the headers of your outgoing email ? (cover-up the bits you
 want to keep private)

If you're running postfix, you might want to also edit /etc/aliases.
The last line or so has a commented line, person who should get root's
mail.  (The name is marc, probably the person who first wrote it.)

After changing that, run newaliases /etc/alias to rebuild the
/etc/alias.db.

To answer your other question, alternatives is the command you asked
about in an earlier post

alternatives  --config mta

This will show you if you're using postfix or sendmail.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: Where have you been pet? 
Drusilla: I went for a walk. I met an old man. I didn't like him,
he got stuck in my teeth.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Anne Wilson
On Monday 22 Aug 2011 13:12:54 Always Learning wrote:
 Once your email is out on the Internet is needs a genuine Internet email
 address. xxx.lan is known only to your internal system and it is not an
 Internet email address.
 
Exactly - and my problem is knowing where it is getting this from.

 Care to show the headers of your outgoing email ? (cover-up the bits you
 want to keep private)
 
Not sure where I can find the outgoing mail but I can give more info that might 
help.

It's a long story, but probably relevant, so -

We first set up a family LAN around 12 years ago, and called it xxx.net.  
Eventually I realised that xxx.net was actually a TLD name, so not a good 
idea.  Actually I now own both xxx.org and xxx.net, but I decided that with 
this install I'd correct what had long been our practice.

On the new CentOS install I set the server name to borg.xxx.lan.  I then 
changed every reference to xxx.net in /etc/hosts, and set about changing the 
Postfix config files.  (I know now that it is using postfix.sendmail,)  
Somewhere 
I either have some other file still pointing to the old name, or, more likely, 
postfix is still using it somewhere.

I have been careful to re-map transports and restart postfix after any changes 
to the config files.  The following from maillog may shed some light as to 
where 
the problem lies:

Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: from=anne, size=6877, 
class=0, nrcpts=1, msgid=201108221302.p7md29lf001...@borg.xxx.lan, 
relay=root@localhost
Aug 22 14:02:11 borg postfix/smtpd[2067]: connect from borg.xxx.net[127.0.0.1]
Aug 22 14:02:11 borg postfix/smtpd[2067]: B4693A377C: 
client=borg.xxx.net[127.0.0.1]
Aug 22 14:02:11 borg postfix/cleanup[2070]: B4693A377C: message-
id=201108221302.p7md29lf001...@borg.xxx.lan
Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: from=a...@borg.xxx.lan, 
size=7487, nrcpt=1 (queue active)
Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=a...@xxx.org, 
ctladdr=anne (500/100), delay=00:00:02, xdelay=00:00:00, mailer=relay, 
pri=36877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 
B4693A377C)
Aug 22 14:02:11 borg postfix/smtpd[2067]: disconnect from 
borg.xxx.net[127.0.0.1]
Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org, 
relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43, 
delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host 
mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for 
a...@borg.xxx.lan 550-Unrouteable address 550 Envelope Sender: Domain must 
resolve in DNS! (in reply to RCPT TO command))
Aug 22 14:02:12 borg postfix/cleanup[2070]: 2EB94A371B: message-
id=20110822130212.2EB94A371B@borg
Aug 22 14:02:12 borg postfix/bounce[2072]: B4693A377C: sender non-delivery 
notification: 2EB94A371B
Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: from=, size=9481, 
nrcpt=1 (queue active)
Aug 22 14:02:12 borg postfix/qmgr[1499]: B4693A377C: removed
Aug 22 14:02:12 borg postfix/smtp[2071]: 2EB94A371B: to=a...@borg.xxx.lan, 
relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.75, delays=0.04/0/0.16/0.54, 
dsn=2.0.0, status=sent (250 OK id=1QvU8e-00085m-9o)
Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: removed

The old transport read:

xxx.net local:
.xxx.netlocal:
*   smtp:[mailhost.zen.co.uk]
.*  smtp:[mailhost.zen.co.uk]

Those lines have been left and 

xxx.lan local:
.xxx.lanlocal:

added in.

A more likely suspect, I think, is main.cf - the relevant lines in the old one 
being 

mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
myhostname = borg.xxx.net
mydomain = xxx.net
myorigin = $mydomain
masquerade_domains = $mydomain
#masquerade_domains = |borg.xxx.net
mynetworks = 192.168.0.0/24,127.0.0.0/8

and the latest version (after many thrashing edits)


mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
myhostname = borg
mydomain = xxx.org
myorigin = $mydomain
# masquerade_domains = $mydomain
mynetworks = 192.168.0.0/24,127.0.0.0/8

Sorry this was so long, but it seemed important to give you as much info as I 
could.

Anne
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Marc Deop i Argemí
On 22/08/2011 15:29, Anne Wilson wrote:
 On Monday 22 Aug 2011 13:12:54 Always Learning wrote:
 Once your email is out on the Internet is needs a genuine Internet email
 address. xxx.lan is known only to your internal system and it is not an
 Internet email address.

 Exactly - and my problem is knowing where it is getting this from.

 Care to show the headers of your outgoing email ? (cover-up the bits you
 want to keep private)

 Not sure where I can find the outgoing mail but I can give more info that 
 might 
 help.

 It's a long story, but probably relevant, so -

 We first set up a family LAN around 12 years ago, and called it xxx.net.  
 Eventually I realised that xxx.net was actually a TLD name, so not a good 
 idea.  Actually I now own both xxx.org and xxx.net, but I decided that with 
 this install I'd correct what had long been our practice.

 On the new CentOS install I set the server name to borg.xxx.lan.  I then 
 changed every reference to xxx.net in /etc/hosts, and set about changing the 
 Postfix config files.  (I know now that it is using postfix.sendmail,)  
 Somewhere 
 I either have some other file still pointing to the old name, or, more 
 likely, 
 postfix is still using it somewhere.

 I have been careful to re-map transports and restart postfix after any 
 changes 
 to the config files.  The following from maillog may shed some light as to 
 where 
 the problem lies:

 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: from=anne, size=6877, 
 class=0, nrcpts=1, msgid=201108221302.p7md29lf001...@borg.xxx.lan, 
 relay=root@localhost
 Aug 22 14:02:11 borg postfix/smtpd[2067]: connect from borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/smtpd[2067]: B4693A377C: 
 client=borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/cleanup[2070]: B4693A377C: message-
 id=201108221302.p7md29lf001...@borg.xxx.lan
 Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: 
 from=a...@borg.xxx.lan, 
 size=7487, nrcpt=1 (queue active)
 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=a...@xxx.org, 
 ctladdr=anne (500/100), delay=00:00:02, xdelay=00:00:00, mailer=relay, 
 pri=36877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 
 B4693A377C)
 Aug 22 14:02:11 borg postfix/smtpd[2067]: disconnect from 
 borg.xxx.net[127.0.0.1]
 Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org, 
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43, 
 delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host 
 mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for 
 a...@borg.xxx.lan 550-Unrouteable address 550 Envelope Sender: Domain must 
 resolve in DNS! (in reply to RCPT TO command))
 Aug 22 14:02:12 borg postfix/cleanup[2070]: 2EB94A371B: message-
 id=20110822130212.2EB94A371B@borg
 Aug 22 14:02:12 borg postfix/bounce[2072]: B4693A377C: sender non-delivery 
 notification: 2EB94A371B
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: from=, size=9481, 
 nrcpt=1 (queue active)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: B4693A377C: removed
 Aug 22 14:02:12 borg postfix/smtp[2071]: 2EB94A371B: to=a...@borg.xxx.lan, 
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.75, 
 delays=0.04/0/0.16/0.54, 
 dsn=2.0.0, status=sent (250 OK id=1QvU8e-00085m-9o)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: removed

 The old transport read:

 xxx.net   local:
 .xxx.net  local:
 * smtp:[mailhost.zen.co.uk]
 .*smtp:[mailhost.zen.co.uk]

 Those lines have been left and 

 xxx.lan   local:
 .xxx.lan  local:

 added in.

 A more likely suspect, I think, is main.cf - the relevant lines in the old 
 one 
 being 

 mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
 myhostname = borg.xxx.net
 mydomain = xxx.net
 myorigin = $mydomain
 masquerade_domains = $mydomain
 #masquerade_domains = |borg.xxx.net
 mynetworks = 192.168.0.0/24,127.0.0.0/8

 and the latest version (after many thrashing edits)


 mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
 myhostname = borg
 mydomain = xxx.org
 myorigin = $mydomain
 # masquerade_domains = $mydomain
 mynetworks = 192.168.0.0/24,127.0.0.0/8

 Sorry this was so long, but it seemed important to give you as much info as I 
 could.

 Anne
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Aug  3 10:20 /usr/sbin/sendmail -
/etc/alternatives/mta

ls -l /etc/alternatives/mta
lrwxrwxrwx 1 root root 27 Aug  3 10:20 /etc/alternatives/mta -
/usr/sbin/sendmail.sendmail

ls -l /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 833512 Jun 17  2010 /usr/sbin/sendmail.sendmail

We fist should make sure you are using postfix instead of sendmail,
could you please check that Anne?

Regards

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Philippe Naudin
Le lun 22 aoû 2011 14:29:29 CEST, Anne Wilson a écrit:

 ... 
 Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org, 
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43, 
 delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host 
 mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for 
 a...@borg.xxx.lan 550-Unrouteable address 550 Envelope Sender: Domain must 
 resolve in DNS! (in reply to RCPT TO command))
 ...

I think you also need to rewrite your envelop address.

I had the same problem years ago, so the way to solve it has probably
changed, hopefully not too much :

- edit (create if necessary) /etc/postfix/sender_cannonical
a...@borg.xxx.lan  some.addr...@some.real.server.for.the.bounces

- edit main.cf :
sender_canonical_maps = hash:/etc/postfix/sender_cannonical

- rehash /etc/postfix/sender_cannonical and reload postfix

Good luck,

-- 
Philippe Naudin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Kai Schaetzl
Actually, the main suspect is the program or person that is sending out 
mail with an unqualified sender, e.g. just user. Change it to a 
qualified sender (e.g. with a resolvable FQDN).

Kai


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Les Mikesell
On 8/22/2011 9:26 AM, Kai Schaetzl wrote:
 Actually, the main suspect is the program or person that is sending out
 mail with an unqualified sender, e.g. just user. Change it to a
 qualified sender (e.g. with a resolvable FQDN).


With sendmail you can set 'MASQUERADE_AS' in sendmail.mc to the FQDN 
that you would like to have added to unqualified senders.  And if you 
want mail from root to be included in this treatment you have to change 
the default 'EXPOSED_USER' setting which assumes that root mail will be 
kept local or sent to an internal hub where you will want to see the 
real sending host.

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Anne Wilson
On 22/08/2011, Scott Robbins scot...@nyc.rr.com wrote:
 On Mon, Aug 22, 2011 at 01:12:54PM +0100, Always Learning wrote:

 On Mon, 2011-08-22 at 13:07 +0100, Anne Wilson wrote:

  a...@.org: host mailhost.zen.co.uk[212.23.3.98] said:

 If you're running postfix, you might want to also edit /etc/aliases.
 The last line or so has a commented line, person who should get root's
 mail.  (The name is marc, probably the person who first wrote it.)

I did that, some time ago.  Postfix.conf points to
/etc/postfix/aliases, though, so I made sure by editing both.

 After changing that, run newaliases /etc/alias to rebuild the
 /etc/alias.db.

Yes, I did remember that

 To answer your other question, alternatives is the command you asked
 about in an earlier post

 alternatives  --config mta

 This will show you if you're using postfix or sendmail.

I found postfix in the partial headers in the bounce-message

 --
 Scott Robbins
 PGP keyID EB3467D6
 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
 gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

 Spike: Where have you been pet?
 Drusilla: I went for a walk. I met an old man. I didn't like him,
 he got stuck in my teeth.
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Alexander Dalloz
It is obvious you run both Sendmail and Postfix, ending in trouble. The
sendmail binary (which is a symlink) still points to Sendmail, though you
seem to have configured Postfix as you system's MTA.

 I have been careful to re-map transports and restart postfix after any
 changes to the config files.  The following from maillog may shed some
 light as to where the problem lies:

 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: from=anne, size=6877,
 class=0, nrcpts=1, msgid=201108221302.p7md29lf001...@borg.xxx.lan,
 relay=root@localhost
 Aug 22 14:02:11 borg postfix/smtpd[2067]: connect from
 borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/smtpd[2067]: B4693A377C:
 client=borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/cleanup[2070]: B4693A377C: message-
 id=201108221302.p7md29lf001...@borg.xxx.lan
 Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C:
 from=a...@borg.xxx.lan,
 size=7487, nrcpt=1 (queue active)
 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=a...@xxx.org,
 ctladdr=anne (500/100), delay=00:00:02, xdelay=00:00:00, mailer=relay,
 pri=36877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued
 as
 B4693A377C)
 Aug 22 14:02:11 borg postfix/smtpd[2067]: disconnect from
 borg.xxx.net[127.0.0.1]
 Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org,
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43,
 delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host
 mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for
 a...@borg.xxx.lan 550-Unrouteable address 550 Envelope Sender: Domain
 must
 resolve in DNS! (in reply to RCPT TO command))
 Aug 22 14:02:12 borg postfix/cleanup[2070]: 2EB94A371B: message-
 id=20110822130212.2EB94A371B@borg
 Aug 22 14:02:12 borg postfix/bounce[2072]: B4693A377C: sender non-delivery
 notification: 2EB94A371B
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: from=, size=9481,
 nrcpt=1 (queue active)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: B4693A377C: removed
 Aug 22 14:02:12 borg postfix/smtp[2071]: 2EB94A371B:
 to=a...@borg.xxx.lan,
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.75,
 delays=0.04/0/0.16/0.54,
 dsn=2.0.0, status=sent (250 OK id=1QvU8e-00085m-9o)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: removed

 Anne

alternatives --config mta

Switch to Postfix. Validate by

alternatives --display mta

then remove Sendmail if you do not use it.

Alexander



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Not receiving root mail

2011-08-22 Thread Dennis Jacobfeuerborn
One of the first things I do after the installation of a system is a yum 
install postfix followed by a yum remove sendmail. No need to deal with 
alternatives if you don't intend to deal with sendmail anyway.

Regards.
   Dennis

On 08/22/2011 08:45 PM, Alexander Dalloz wrote:
 It is obvious you run both Sendmail and Postfix, ending in trouble. The
 sendmail binary (which is a symlink) still points to Sendmail, though you
 seem to have configured Postfix as you system's MTA.

 I have been careful to re-map transports and restart postfix after any
 changes to the config files.  The following from maillog may shed some
 light as to where the problem lies:

 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: from=anne, size=6877,
 class=0, nrcpts=1, msgid=201108221302.p7md29lf001...@borg.xxx.lan,
 relay=root@localhost
 Aug 22 14:02:11 borg postfix/smtpd[2067]: connect from
 borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/smtpd[2067]: B4693A377C:
 client=borg.xxx.net[127.0.0.1]
 Aug 22 14:02:11 borg postfix/cleanup[2070]: B4693A377C: message-
 id=201108221302.p7md29lf001...@borg.xxx.lan
 Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C:
 from=a...@borg.xxx.lan,
 size=7487, nrcpt=1 (queue active)
 Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=a...@xxx.org,
 ctladdr=anne (500/100), delay=00:00:02, xdelay=00:00:00, mailer=relay,
 pri=36877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued
 as
 B4693A377C)
 Aug 22 14:02:11 borg postfix/smtpd[2067]: disconnect from
 borg.xxx.net[127.0.0.1]
 Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=a...@xxx.org,
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43,
 delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host
 mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for
 a...@borg.xxx.lan  550-Unrouteable address 550 Envelope Sender: Domain
 must
 resolve in DNS! (in reply to RCPT TO command))
 Aug 22 14:02:12 borg postfix/cleanup[2070]: 2EB94A371B: message-
 id=20110822130212.2EB94A371B@borg
 Aug 22 14:02:12 borg postfix/bounce[2072]: B4693A377C: sender non-delivery
 notification: 2EB94A371B
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: from=, size=9481,
 nrcpt=1 (queue active)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: B4693A377C: removed
 Aug 22 14:02:12 borg postfix/smtp[2071]: 2EB94A371B:
 to=a...@borg.xxx.lan,
 relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.75,
 delays=0.04/0/0.16/0.54,
 dsn=2.0.0, status=sent (250 OK id=1QvU8e-00085m-9o)
 Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: removed

 Anne

 alternatives --config mta

 Switch to Postfix. Validate by

 alternatives --display mta

 then remove Sendmail if you do not use it.

 Alexander



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos