exim4 sending via multiple gmail smtp accounts


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users exim4 sending via multiple gmail smtp accounts
# 1  
Old 10-04-2012
exim4 sending via multiple gmail smtp accounts

I need to send mail using different gmail smtp logins, depending on the from header. I can put the appropriate expression in dc_smarthost to generate the host, but I don't know how to specify the login id. The login id comes from passwd.client and is associated with the server name. According to the documentation passwd.client is looked up using the reverse translate of the server ip, so I don't know how to use /etc/hosts tricks to create aliases.

Any suggestions as to how to accomplish this. Should I be taking a completely different approach?
# 2  
Old 10-05-2012
I am not experienced with exim4, but I know the neighborhood. I think you might get more info by using the -bh, -bt and -d options appropriately to test your configuration and get additional information about where it looks.

Assisting DNS lookups, forward or backward, with /etc/hosts just means adding redundant lines there to support lookup that might be missing on DNS. Often a host looks up forward OK but when you get the nslookup PTR reverse lookup of the IP, the IP is tied to another name as primary, so it is misconfigured or a CNAME for the other. Proper DNS is the the A and PTR records agree, and other names on the IP are CNAME attached. One solution is to use the host name from the PTR, assuming it also has a DNS A record. Using nslookup -d2 can reveal more of the DNS configuration.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Configuring smtp settings and then sending the mail through shell script

I have make an menu in which first option is to start and second is to stop the services echo "Please enter the appropriate choice for doing the operations" echo " 1) STOP Services 2) START Services case $choice in 1) ... (1 Reply)
Discussion started by: punpun66
1 Replies

2. Shell Programming and Scripting

php code - Sending mail with external SMTP server

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

3. Shell Programming and Scripting

Configure gmail in linux shell for sending email

Hello, i have a problem sending emails in the command line. I have introduced this command: sendEmail -f my.account@gmail.com -t myself@domain.tld \ -u this is the test tile -m “this is a test message” \ -s smtp.gmail.com \ -o tls=yes \ -xu usernameonly -xp mypasswd but then i received... (1 Reply)
Discussion started by: limadario
1 Replies

4. Shell Programming and Scripting

Getting error while sending mail via smtp

Hi All, I used before a simple routine code in tcl to send mail. package require smtp package require mime package require Tcl proc send_simple_message {recipient email_server subject body} { set token mime::setheader $token Subject $subject smtp::sendmessage $token \ ... (0 Replies)
Discussion started by: zivsegal
0 Replies

5. UNIX for Dummies Questions & Answers

EXim4 on Debian - setting up multiple mailboxes

I have exim4 smtp server running on Debian. I tend to use only one user account to login. The machine is running multiple websites and I have assigned unique email addresses for each of the websites. Emails sent to these addresses do not seem to get delivered. Emails sent to the alias that I... (0 Replies)
Discussion started by: shikarishambu
0 Replies

6. Shell Programming and Scripting

Sending Attachment using MIME::Lite and Net::SMTP

Hello, I'm a newbie perl scriptor and i'm trying to figure out why i can't send an email using MIME::Lite with Net::SMTP. I keep receiving the following error: SMTP MAIL command failed: 5.7.1 Helo invalid . at attach1.pl line 31 The error keeps coming from the very last line... (2 Replies)
Discussion started by: xmaverick
2 Replies

7. UNIX for Dummies Questions & Answers

sending mail via smtp

Hi Gururs, I have a process on a middelware (SAP XI) that is runnung on HP-UX. This Process is creating a flatfile. Now I want to call a script within the process that sends the created flatfile as attachment via Mail using a smpt-server. The script should have the following input parameters:... (2 Replies)
Discussion started by: elko.hasse
2 Replies

8. SuSE

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)... (5 Replies)
Discussion started by: jumadhiya
5 Replies
Login or Register to Ask a Question