02-17-2014
Postfix: emails addressed to multiple smart hosts
Hi,
I am in process of setting up a SMTP server on RHEL 6 using Postfix.
I am stuck at one point so any help would be appreciated.
I have configured my xsender to use this new SMTP server as its mail server.
If I send any emails addressed TO example.com the SMTP server should use the DNS MX record and forward that email.
If I send any email to any domain APART from example.com the SMTP server should use "myrelayhost.com" as its Relay Host which is an Iron port device.
Basically I do not want any email going internally to organization to hit my Ironport Device "myrelayhost.com"
How is this possible using postfix?
9 More Discussions You Might Find Interesting
1. IP Networking
Hello,
I am new to POSTFIX.
My manager has asked me to configure POSTFIX running on a server to accept mail only from itself(localhost). Can someone tell me how I can go about doing this? (1 Reply)
Discussion started by: mojoman
1 Replies
2. Shell Programming and Scripting
The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements:
uuencode $LOG_REPORT $(basename $LOG_REPORT)
uuencode $HTML_FILE $(basename $HTML_FILE )
) | if
then mailx -b "$COPY_TO" -s "$SUBJECT" -r "$MAIL_FROM"... (2 Replies)
Discussion started by: suthera
2 Replies
3. Shell Programming and Scripting
I am looking for a script that I can use with mailx to do the following:
1. Grab usernames from a flat file (one at a time)
2. Attach a file to the email and mail out.
Thanks.
Cubefeed (3 Replies)
Discussion started by: CubeFeed
3 Replies
4. Shell Programming and Scripting
Hi everyone,
I'm writing a script that connect to telnet and write some email taking the RCPT from a file. My problem is the fact I'm not able to put all the addresses I have in the file as subject for the "RCPT TO:":confused:...
Can anyone please help me?
Thanks
ps: I wrote this right... (7 Replies)
Discussion started by: t_waspy
7 Replies
5. UNIX for Dummies Questions & Answers
Is it possible for both commands to work? (1 Reply)
Discussion started by: phunkypants
1 Replies
6. Shell Programming and Scripting
Hello,
I have currently coded a bash script below in which it does the following:
# Archives compressed file from another location.
Basically it moves *.gz files to another location.
The script also sends an email whenever a new compressed file is placed. This is the issue that i... (5 Replies)
Discussion started by: Wizard_1979
5 Replies
7. Shell Programming and Scripting
Hi All,
I want to send each file to each email id as below.
Instead of writing saparate 10 mail commands
can we do it in a simple step.
file1.csv to raghu.s@hps.com
file2.csv to kiran.m@hps.com
file3.csv to kenni.d@hps.com
file4.csv to rani.d@hps.com
file5.csv to sandya.s@hps.com... (2 Replies)
Discussion started by: ROCK_PLSQL
2 Replies
8. Shell Programming and Scripting
Hello,
I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out.
I am specifically facing issues while running for loops.
I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies
9. Shell Programming and Scripting
I'm unable to send email from my Linux server despite SMTP port 25 Active and Listening.
# hostname
TechX
I checked the mail log ( /var/log/maillog ) and found the below error.
I'm sharing all the ".cf" files seen in the error log.
1.
# more /etc/postfix/main.cf
# postfix... (0 Replies)
Discussion started by: mohtashims
0 Replies
LEARN ABOUT DEBIAN
email::sender::transport::smtp
Email::Sender::Transport::SMTP(3pm) User Contributed Perl Documentation Email::Sender::Transport::SMTP(3pm)
NAME
Email::Sender::Transport::SMTP - send email over SMTP
VERSION
version 0.110005
DESCRIPTION
This transport is used to send email over SMTP, either with or without secure sockets (SSL). It is one of the most complex transports
available, capable of partial success.
For a potentially more efficient version of this transport, see Email::Sender::Transport::SMTP::Persistent.
ATTRIBUTES
The following attributes may be passed to the constructor:
"host": the name of the host to connect to; defaults to "localhost"
"ssl": if true, connect via SSL; defaults to false
"port": port to connect to; defaults to 25 for non-SSL, 465 for SSL
"timeout": maximum time in secs to wait for server; default is 120
"sasl_username": the username to use for auth; optional
"sasl_password": the password to use for auth; required if "username" is provided
"allow_partial_success": if true, will send data even if some recipients were rejected; defaults to false
"helo": what to say when saying HELO; no default
"localaddr": local address from which to connect
"localport": local port from which to connect
PARTIAL SUCCESS
If "allow_partial_success" was set when creating the transport, the transport may return Email::Sender::Success::Partial objects. Consult
that module's documentation.
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-06 Email::Sender::Transport::SMTP(3pm)