Relay mail server

Thread Tools Search this Thread
Operating Systems Linux Red Hat Relay mail server
# 1  
Old 03-25-2014
Oracle Relay mail server


I have a postfix mail server on centos 6. ( )

I want to send mail through my mail server from other linux server ( server1 ), so that it will use mail server IP address.

I have tried.
myhostname = 
relayhost =

in client server ( say server1 ) postfix configuration. and restarted postfix.

but when i am sending mail form server1.

It is going but when i am checking full path of mail, it is showing
Received: from

rather then
Received: from

Can some one please let me know what is wrong in my configuration.

MY CONF on Client side.

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = localhost
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
myhostname = 
relayhost =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

debug_peer_level = 2
debugger_command =
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

# 2  
Old 03-25-2014

# 3  
Old 03-26-2014
I have added the same and restarted postfix in client server.
but no luck.
mydomain =

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Need an help in configuring Postfix mail relay server

Hello, We have 2 servers, server A and Server B in same domain. I have already configured the Serevr A to send an email to the internet (outside domain) by opening the port 25 to the internet. Now I need to send an email to the outside domain from Server B using server A. I have opened the... (1 Reply)
Discussion started by: sathishbabu89
1 Replies

2. UNIX for Advanced & Expert Users

Configuring second mail relay

Hi all, Once I already asked about this problem, but didn't get solution, so I am opening new thread. Hope to get help from you guys. So, my problem is: I have Solaris 10 based server. I have a script which should send mails using mailx (can use another if needed). What I need is -... (3 Replies)
Discussion started by: nypreH
3 Replies

3. UNIX for Dummies Questions & Answers

How to specify second mail relay in Solaris?

Dears, I've configured Solaris (10) server to send mails to corporate mailboxes. Now I need to specify second relay, so if mailx will see that mail it will send to ( and if it will see that mail belongs to - it will send to another IP... (3 Replies)
Discussion started by: nypreH
3 Replies

4. SCO

Sendmail delivers mail to local user if it exists instead of passing it to the smart relay

Environment: SCO Unix Openserver 6 Sendmail ver: 8.11.3 I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain,,, and the new just to name a... (2 Replies)
Discussion started by: checkpro
2 Replies

5. What is on Your Mind?

Free Open Mail Relay

Any suggestions? Until recently I used (have dyn IP), but nowthey do not relay any mail at all. Other solutions I found in Googledo not work either. For any help - thanks in advance. (1 Reply)
Discussion started by: Action
1 Replies

6. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

7. Solaris

configure solaris 10 mail to relay email alerts from SAN switch

I want to be able to use an account on a solaris 10 server, eg root@myhost to act as a relay to forward mail to my domain account The reason for this is to configure root@myhost as a mail relay on Brocade SAN switches - so that when a port goes bad i get an email alert.... (0 Replies)
Discussion started by: wibidee
0 Replies

8. AIX

Relay to Exchange Server

AIX 5.3 Domain: domainna Exchange Server: Our emails that are generated from Unix going to the "outside world" are now being rejected by most hosts. The current relay is listed as user@domainna. Here is a snippet from the log... 1356561:Aug 21 08:04:05 domainna... (0 Replies)
Discussion started by: andrewsc
0 Replies

9. Linux

local mail relay problem in Sendmail

I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error - localhost denied from relaying The command I used to send mail is - Ls -l | mail -s... (0 Replies)
Discussion started by: RajaRC
0 Replies
Login or Register to Ask a Question