The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Testing the new SUSE Linux Enterprise 10 SP2 iBot UNIX and Linux RSS News 0 05-24-2008 09:20 AM
Distribution Release: SUSE Linux Enterprise 10 SP2 iBot Software Releases - RSS News 0 05-21-2008 10:40 AM
TCS automates Linux server hardening - Search Enterprise Linux iBot UNIX and Linux RSS News 0 08-21-2007 05:30 PM
Configure SMTP Server for Unix chawlaaman UNIX for Advanced & Expert Users 5 08-10-2007 09:50 AM
How to configure sendmail on Suse Linux 9.0...??? jumadhiya UNIX for Advanced & Expert Users 3 07-12-2007 06:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-25-2007
jumadhiya jumadhiya is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 44
How to configure Suse Enterprise Linux 9.0 for sending mails to smtp server...???

Hi All,

I have a system running with Suse Enterprise Linux 9.0.

xyz# uname -a
Linux xyz 2.4.21-291-smp #1 SMP Tue May 24 14:07:45 UTC 2005 i686 unknown

I would like to configure postfix on this system for sending mails as a root user using "mail" command to smtp server (Windows System) which will then forward it to the correct address.

Example " xyz# mail xyz@yahoo.com "

As per my knowledge there are two main configuration files in /etc/postfix folder;

main.cf
master.cf


Can anyone help me out what setting needs to be done for sending the mails to my smtp server from SuSE system.

Note : I have added the entry for my smtp server in /etc/hosts file.

Note : I have check the telnet connection using port 25 for the smtp server, it works fine.

Thanks & Regards,
jumadhiya.
  #2 (permalink)  
Old 07-29-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You can get good documentation, including standard configuration examples, from the Postfix.org site.

Postfix Standard Configuration Examples

Cheers
ZB
  #3 (permalink)  
Old 07-31-2007
jumadhiya jumadhiya is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 44
Thanks zazzybob...!!!

But after doing the configuration by following the web link given by you, I am facing the problem while sending mails from my SuSE Linux box.

Error from /var/log/mail file:

Jul 26 14:03:23 cn2 postfix/pickup[12829]: 1C9D635DBC: uid=0 from=<root>

Jul 26 14:03:23 cn2 postfix/cleanup[3563]: 1C9D635DBC: message-id=<20070726083323.1C9D635DBC@linux.local>

Jul 26 14:03:23 cn2 postfix/qmgr[12830]: 1C9D635DBC: from=<root@.xyz.com>, size=307, nrcpt=1 (queue active)

Jul 26 14:03:23 cn2 postfix/smtp[3565]: 1C9D635DBC: to=<ganesh@xyz.com>, relay=smtp.xyz.com[10.10.20.206], delay=0, status=bounced (host smtp.xyz.com[10.10.20.206] said: 501 Bad address syntax)

Jul 26 14:03:23 cn2 postfix/cleanup[3563]: 33CAF35DD1: message-id=<20070726083323.33CAF35DD1@linux.local>

Jul 26 14:03:23 cn2 postfix/qmgr[12830]: 33CAF35DD1: from=<>, size=1936, nrcpt=1 (queue active)

Jul 26 14:03:23 cn2 postfix/qmgr[12830]: 33CAF35DD1: to=<root@.xyz.com>, relay=none, delay=0, status=bounced (bad host/domain syntax: ".xyz.com")

When I send mail using “mail” command, it takes “.” from myorigin = $smtp.xyz.com entry of main.cf file.

If I change myorigin to myorigin = $smtp@xyz.com, in the output of mail log file, from address will be
from=<root@@xyz.com>.

Entries from /etc/postfix/main.cf file :

#myorigin = $myhostname
myorigin = $smtp.xyz.com

mynetworks = 127.0.0.0/8 10.10.20.206/24
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

relayhost = $smtp.xyz.com
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

#mydestination = $myhostname, localhost.$mydomain
mydestination = $cn2, localhost.$smtp.xyz.com $smtp.xyz.com
#mydestination = $myhostname, localhost.$mydomain, $mydomain,

Can anyone please help me out to resolve this issue...!!!

Thanks & Regards,
jumadhiya.
  #4 (permalink)  
Old 07-31-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
This:

root@.xyz.com

is a badly formed address.

Try changing your "myorigin" directive to

myorigin = smtp.xyz.com

i.e. remove the '$', then issue

postfix reload

Cheers,
ZB
  #5 (permalink)  
Old 08-01-2007
jumadhiya jumadhiya is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 44
Thanks zazzybob....!!!

When I changed ;

myorigin = smtp.xyz.com

The output of /var/log/mail is as follows;

Aug 1 13:41:55 cn2 postfix/master[8760]: terminating on signal 15
Aug 1 13:41:55 cn2 postfix/postfix-script: starting the Postfix mail system
Aug 1 13:41:55 cn2 postfix/master[3876]: daemon started
Aug 1 13:42:19 cn2 postfix/pickup[3879]: 3F0A735DD1: uid=0 from=<root>
Aug 1 13:42:19 cn2 postfix/cleanup[4130]: 3F0A735DD1: message-id=<20070801081219.3F0A735DD1@linux.local>
Aug 1 13:42:19 cn2 postfix/qmgr[3880]: 3F0A735DD1: from=<root@smtp.xyz.com>, size=317, nrcpt=1 (queue active)
Aug 1 13:42:19 cn2 postfix/smtp[4132]: 3F0A735DD1: to=<ganesh@xyz.com>, relay=smtp.xyz.com[10.10.20.206], delay=0, status=bounced (host smtp.xyz.com[10.10.20.206] said: 554 <root@smtp.xyz.com>: Sender address rejected: Access denied)
Aug 1 13:42:19 cn2 postfix/cleanup[4130]: 9C77B35DEA: message-id=<20070801081219.9C77B35DEA@linux.local>
Aug 1 13:42:19 cn2 postfix/qmgr[3880]: 9C77B35DEA: from=<>, size=2050, nrcpt=1 (queue active)
Aug 1 13:42:19 cn2 postfix/smtp[4132]: 9C77B35DEA: to=<root@smtp.xyz.com>, relay=smtp.xyz.com[10.10.20.206], delay=0, status=bounced (host smtp.xyz.com[10.10.20.206] said: 554 <>: Sender address rejected: Access denied)
========================================================

When I changed ;

myorigin = xyz.com

The output of /var/log/mail is as follows;

Aug 1 13:44:58 cn2 postfix/master[3876]: terminating on signal 15
Aug 1 13:44:58 cn2 postfix/postfix-script: starting the Postfix mail system
Aug 1 13:44:58 cn2 postfix/master[5996]: daemon started
Aug 1 13:45:08 cn2 postfix/pickup[5999]: 36AC235DDF: uid=0 from=<root>
Aug 1 13:45:08 cn2 postfix/cleanup[6113]: 36AC235DDF: message-id=<20070801081508.36AC235DDF@linux.local>
Aug 1 13:45:08 cn2 postfix/qmgr[6000]: 36AC235DDF: from=<root@xyz.com>, size=301, nrcpt=1 (queue active)
Aug 1 13:45:08 cn2 postfix/smtp[6115]: 36AC235DDF: to=<ganesh@xyz.com>, relay=smtp.xyz.com[10.10.20.206], delay=0, status=bounced (host smtp.xyz.com[10.10.20.206] said: 554 <root@xyz.com>: Sender address rejected: Access denied)
Aug 1 13:45:08 cn2 postfix/cleanup[6113]: 4C54935DED: message-id=<20070801081508.4C54935DED@linux.local>
Aug 1 13:45:08 cn2 postfix/qmgr[6000]: 4C54935DED: from=<>, size=2014, nrcpt=1 (queue active)
Aug 1 13:45:08 cn2 postfix/smtp[6115]: 4C54935DED: to=<root@xyz.com>, relay=smtp.xyz.com[10.10.20.206], delay=0, status=bounced (host smtp.xyz.com[10.10.20.206] said: 554 <>: Sender address rejected: Access denied)

As per the above outputs, can you tell me which one should I use. My smtp server address is like abc@xyz.com.....but not like abc@smtp.xyz.com.

Now I just need to add user "root@xyz.com" on my smtp server (Windows) for sending the messages from my SuSE Linux box using root id...right...??

Correct me if I am wrong at any place.

Thanks & Regards,
jumadhiya.
  #6 (permalink)  
Old 08-01-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Looks like the SMTP server you're relaying to is rejecting the sender address - maybe you have UBE controls or blacklists or something like that (I don't know MS Exchange so wouldn't know what to suggest here) - with Postfix you can have DNSRBLs, access maps, sender restrictions, etc to govern this.

Try
Code:
$ telnet the.windows.smtp.server 25
HELO xyz.com
MAIL FROM: <root@xyz.com>
RCPT TO: <someone@xyz.com>
DATA
Subject: Testing mail
Hello,
This is a test
.
QUIT
i.e. enter the SMTP commands manually, does this work? Does the sender address still get rejected?

Cheers
ZB
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0