07-31-2007
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.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
We had an upgrade today morning and since then mailx command is not working.
I have been told to change the DNS to use host name as smtp.companyname.com instead of the IP address.
Can someone please help me out to know where can I change this on a Unix Server.
Thanks
Aman (5 Replies)
Discussion started by: chawlaaman
5 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I need to send mail to a particular email id using a local mail server.This mail shall contain the content of a file. I don't have any idea how to do it. Can anyone guide me ,where to start proceeding for it. Any guide or study material would appreciated. (1 Reply)
Discussion started by: amit_kv1983
1 Replies
3. SuSE
Hi,
I have installed LKCD using lkcdutils pakage through Yast install and remove applications. I have used enterprise server cd for installation.
But I did not found any service of lkcd like /etc/init.d/boo.lkcd there.
if we dont have this servers lkcd dump can not be saved at dump... (0 Replies)
Discussion started by: bryanabhay
0 Replies
4. Linux
Hi All,
How to configure SMTP service in linux 5.2?
Please provide me the steps.
Thanks
Jack (5 Replies)
Discussion started by: jack00423
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all,I know, that this is very common issue, but I can't find where is the problem... I have Solaris 10 installed.I want to send mail to external SMTP server, like:echo "letter body"| mailx -s "subject" test@test.comBut I donno what kind of changes I have to do in /etc/hosts and sendmail.cf or... (5 Replies)
Discussion started by: nypreH
5 Replies
6. Shell Programming and Scripting
Here is the code:
<?php
//new function
function loadini($path) {
$fp = fopen($path, "r");
$fpcontents = fread($fp, filesize($path));
fclose($fp);
return $fpcontents;
}
$to = "test@test.com";
$nameto = "notme";
$from = "test";
$namefrom = "Who From"; ... (0 Replies)
Discussion started by: galford
0 Replies
7. SuSE
Hello Folks,
Greetings,
I am in need of extending the / partition for one of my SuSE linux Enterprise Server 11.1 which is running on VMware. I will be able to extend the virtual lun from the vshphere console but not sure how to extend the root partition from the OS end. I am not sure if I... (1 Reply)
Discussion started by: PSP
1 Replies
8. UNIX for Dummies Questions & Answers
OK, I've been thrown into an issue at my company where the security folks want password aging turned on for their limited NIS environment.
The config is a SunOS5.10 (Solaris 10) Master with several slaves and several SuSe Enterprise Server 11 Clients.
What I'm looking to understand is... (0 Replies)
Discussion started by: rzrv15
0 Replies
9. UNIX and Linux Applications
Is there any SUSE enterprise 12 x86_32 version available? I have SUSE enterprise 12 x86_64 and I am unable to compile 32 programs in that. It looks to be that gcc compiler (32 bit) does not come with SUSE 12. How can I get that?
Regards,
George (6 Replies)
Discussion started by: George47
6 Replies
10. SuSE
hello All,
good day to you.
could you tell me is there any way I can download SUSE lunux enterprise server trail version ?
I want to install sap application over it.
thanks in advance. (1 Reply)
Discussion started by: Leaner_963
1 Replies
LEARN ABOUT REDHAT
trivial-rewrite
TRIVIAL-REWRITE(8) System Manager's Manual TRIVIAL-REWRITE(8)
NAME
trivial-rewrite - Postfix address rewriting and resolving daemon
SYNOPSIS
trivial-rewrite [generic Postfix daemon options]
DESCRIPTION
The trivial-rewrite daemon processes two types of client service requests:
rewrite
Rewrite an address to standard form. The trivial-rewrite daemon by default appends local domain information to unqualified
addresses, swaps bang paths to domain form, and strips source routing information. This process is under control of several configu-
ration parameters (see below).
resolve
Resolve an address to a (transport, nexthop, recipient) triple. The meaning of the results is as follows:
transport
The delivery agent to use. This is the first field of an entry in the master.cf file.
nexthop
The host to send to. For local delivery this is an empty string.
recipient
The envelope recipient address that is passed on to nexthop.
The trivial-rewrite daemon by default only distinguishes between local and non-local mail. For finer control over mail routing, use
the optional transport(5) lookup table.
This program expects to be run from the master(8) process manager.
STANDARDS
None. The command does not interact with the outside world.
SECURITY
The trivial-rewrite daemon is not security sensitive. By default, this daemon does not talk to remote or local users. It can run at a
fixed low privilege in a chrooted environment.
DIAGNOSTICS
Problems and transactions are logged to syslogd(8).
BUGS
CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this program. See the Postfix main.cf file for syntax details and for default
values. Use the postfix reload command after a configuration change.
Miscellaneous
inet_interfaces
The network interfaces that this mail system receives mail on. This information is used to determine if user@[net.work.addr.ess] is
local or remote.
mydestination
List of domains that this machine considers local.
myorigin
The domain that locally-posted mail appears to come from.
resolve_unquoted_address
When resolving an address, do not quote the address localpart as per RFC 822, so that additional @, % or ! characters remain visi-
ble. This is technically incorrect, but allows us to stop relay attacks when forwarding mail to a Sendmail primary MX host.
Rewriting
allow_percent_hack
Rewrite user%domain to user@domain.
append_at_myorigin
Rewrite user to user@$myorigin.
append_dot_mydomain
Rewrite user@host to user@host.$mydomain.
swap_bangpath
Rewrite site!user to user@site.
Routing
local_transport
Where to deliver mail for destinations that match $mydestination or $inet_interfaces. The default transport is local.
Syntax is transport:nexthop; see transport(5) for details. The :nexthop part is optional.
default_transport
Where to deliver non-local mail when no information is explicitly given in the transport(5) table. The default transport is smtp.
Syntax is transport:nexthop; see transport(5) for details. The :nexthop part is optional.
parent_domain_matches_subdomains
List of Postfix features that use domain.tld patterns to match sub.domain.tld (as opposed to requiring .domain.tld patterns).
relayhost
The default host to send non-local mail to when no entry is matched in the transport(5) table.
When no relayhost is specified, mail is routed directly to the destination's mail exchanger.
transport_maps
List of tables with domain to (transport, nexthop) mappings.
SEE ALSO
master(8) process manager
syslogd(8) system logging
transport(5) transport table format
LICENSE
The Secure Mailer license must be distributed with this software.
AUTHOR(S)
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA
TRIVIAL-REWRITE(8)