HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Allow relay by email user (http://www.howtoforge.com/forums/showthread.php?t=59746)

WeaponX 29th November 2012 22:18

Allow relay by email user
 
We have a customer that uses a printer that is able to send emails from.
Email settings are setup on the printer.
The printer is able to send email from the local mail domain network only, But is unable to send to another domain other than the mail domain.
With their outlook using the same user settings they can send out to any domain just fine.
I have setup Email relay recipient in ISPconfig 3 to allow relay from that user only but no dice. How can i set this one user to be allowed to relay.

If i add the users ip to main.cf the issue is gone but i dont want that as it's a security issue.
mynetworks = 192.168.1.0/24 127.0.0.0/8


Excepted Example: amavis[22979]: (22979-12) Passed CLEAN, MYUSERS LOCAL [x.x.x.x] [x.x.x.x] <user@mydomain.com> -> <user2@mydomain.com>, Message-ID: <27566AA6.0000000E.00000001@mydomain.com>, mail_id: YhslNK2ULlhb, Hits: 3.014, size: 78926, queued_as: 4CE432209E7, 368 ms

Reject Example: postfix/smtpd[24076]: NOQUEUE: reject: RCPT from mydomain.com[x.x.x.x]: 554 5.7.1 <support@otherdomain.net>: Relay access denied; from=<user@mydomain.com> to=<support@otherdomain.net> proto=SMTP helo=<[x.x.x.x]>

pititis 29th November 2012 23:04

The problem here is that your user is sending email from his outlook as authenticated user and the printer not. Authenticated = trusted = allowed to relay

Just add the ip of the printer to mynetworks parameter in main.cf

Cheers

WeaponX 29th November 2012 23:35

unfortunately, thats not what i am looking for since this is a hosted mail server.
The ips here are just changed for security.

ISPConfig 3 has a ( Email relay recipient ) under Global Filters.

Would this not do what i want. Just to allow that user to relay by email address?

Email relay recipient

Relay recipient

Server: mydomain.com

Relay recipient: user@mydomain.com

Active: check

pititis 30th November 2012 01:04

No, relay recipient is used for email routing.

Does your printer support smtp authentication?

WeaponX 27th December 2012 17:43

Ok thanks. No the printer does not use authentication. I ended up putting the ip into mynetworks.

Thank you again.


All times are GMT +2. The time now is 12:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.